| @@ -4,10 +4,8 @@ | ||
| 4 | 4 | * |
| 5 | 5 | * @package WPSEO\Admin\Menu |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | -use Yoast\WP\SEO\Promotions\Application\Promotion_Manager; | |
| 9 | - | |
| 10 | 8 | /** |
| 11 | 9 | * Admin menu base class. |
| 12 | 10 | */ |
| 13 | 11 | abstract class WPSEO_Base_Menu implements WPSEO_WordPress_Integration { |
| @@ -238,30 +236,8 @@ | ||
| 238 | 236 | * @return array Callback page handler. |
| 239 | 237 | */ |
| 240 | 238 | protected function get_admin_page_callback() { |
| 241 | 239 | return [ $this->menu, 'load_page' ]; |
| 242 | - } | |
| 243 | - | |
| 244 | - /** | |
| 245 | - * Returns the page title to use for the licenses page. | |
| 246 | - * | |
| 247 | - * @deprecated 25.5 | |
| 248 | - * @codeCoverageIgnore | |
| 249 | - * | |
| 250 | - * @return string The title for the license page. | |
| 251 | - */ | |
| 252 | - protected function get_license_page_title() { | |
| 253 | - static $title = null; | |
| 254 | - | |
| 255 | - _deprecated_function( __METHOD__, 'Yoast SEO 25.5' ); | |
| 256 | - | |
| 257 | - $title ??= __( 'Upgrades', 'wordpress-seo' ); | |
| 258 | - | |
| 259 | - if ( YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-promotion' ) && ! YoastSEO()->helpers->product->is_premium() ) { | |
| 260 | - $title = __( 'Upgrades', 'wordpress-seo' ) . '<span class="yoast-menu-bf-sale-badge">' . __( '30% OFF', 'wordpress-seo' ) . '</span>'; | |
| 261 | - } | |
| 262 | - | |
| 263 | - return $title; | |
| 264 | 240 | } |
| 265 | 241 | |
| 266 | 242 | /** |
| 267 | 243 | * Returns a base64 URL for the svg for use in the menu. |