Merged in feature/MAW-855-import-code-into-aws (pull request #2)

code import from pantheon

* code import from pantheon
This commit is contained in:
Tony Volpe
2023-12-04 23:08:14 +00:00
parent 8c9b1312bc
commit 8f4b5efda6
4766 changed files with 185592 additions and 239967 deletions

View File

@@ -5,6 +5,8 @@
* @package WPSEO\Admin\Menu
*/
use Yoast\WP\SEO\Promotions\Application\Promotion_Manager;
/**
* Admin menu base class.
*/
@@ -258,6 +260,10 @@ abstract class WPSEO_Base_Menu implements WPSEO_WordPress_Integration {
$title = __( 'Premium', 'wordpress-seo' );
}
if ( YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-2023-promotion' ) && ! YoastSEO()->helpers->product->is_premium() ) {
$title = __( 'Premium', 'wordpress-seo' ) . '<span class="yoast-menu-bf-sale-badge">' . __( '30% OFF', 'wordpress-seo' ) . '</span>';
}
return $title;
}