X7ROOT File Manager
Current Path:
/home/katmhsmi/public_html/wp-content/plugins/wordpress-seo/src/config
home
/
katmhsmi
/
public_html
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
config
/
📁
..
📄
badge-group-names.php
(1.49 KB)
📄
conflicting-plugins.php
(5.28 KB)
📄
indexing-reasons.php
(1.28 KB)
📄
migration-status.php
(5.15 KB)
📁
migrations
📄
oauth-client.php
(8.89 KB)
📄
researcher-languages.php
(339 B)
📄
schema-ids.php
(1.07 KB)
📄
schema-types.php
(4 KB)
📄
semrush-client.php
(2.61 KB)
📄
wincher-client.php
(3.83 KB)
📄
wincher-pkce-provider.php
(7.02 KB)
Editing: badge-group-names.php
<?php namespace Yoast\WP\SEO\Config; /** * Class Badge_Group_Names. * * This class defines groups for "new" badges, with the version in which those groups are no longer considered * to be "new". */ class Badge_Group_Names { public const GROUP_GLOBAL_TEMPLATES = 'global-templates'; /** * Constant describing when certain groups of new badges will no longer be shown. */ public const GROUP_NAMES = [ self::GROUP_GLOBAL_TEMPLATES => '16.7-beta0', ]; /** * The current plugin version. * * @var string */ protected $version; /** * Badge_Group_Names constructor. * * @param string|null $version Optional: the current plugin version. */ public function __construct( $version = null ) { if ( ! $version ) { $version = \WPSEO_VERSION; } $this->version = $version; } /** * Check whether a group of badges is still eligible for a "new" badge. * * @param string $group One of the GROUP_* constants. * @param string|null $current_version The current version of the plugin that's being checked. * * @return bool Whether a group of badges is still eligible for a "new" badge. */ public function is_still_eligible_for_new_badge( $group, $current_version = null ) { if ( ! \array_key_exists( $group, $this::GROUP_NAMES ) ) { return false; } $group_version = $this::GROUP_NAMES[ $group ]; if ( $current_version === null ) { $current_version = $this->version; } return (bool) \version_compare( $group_version, $current_version, '>' ); } }
Upload File
Create Folder