__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?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 ( \is_null( $current_version ) ) {
$current_version = $this->version;
}
return (bool) \version_compare( $group_version, $current_version, '>' );
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| migrations | Folder | 0775 |
|
|
| badge-group-names.php | File | 1.49 KB | 0775 |
|
| conflicting-plugins.php | File | 5.28 KB | 0775 |
|
| indexing-reasons.php | File | 1.28 KB | 0775 |
|
| migration-status.php | File | 5.15 KB | 0775 |
|
| oauth-client.php | File | 8.89 KB | 0775 |
|
| researcher-languages.php | File | 339 B | 0775 |
|
| schema-ids.php | File | 1.07 KB | 0775 |
|
| schema-types.php | File | 4 KB | 0775 |
|
| semrush-client.php | File | 2.62 KB | 0775 |
|
| wincher-client.php | File | 3.84 KB | 0775 |
|
| wincher-pkce-provider.php | File | 7.02 KB | 0775 |
|