Skip to content

Commit

Permalink
Add the class to the deprecated classes list
Browse files Browse the repository at this point in the history
  • Loading branch information
leonidasmi committed Jul 5, 2024
1 parent 157a523 commit b509991
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
20 changes: 11 additions & 9 deletions config/dependency-injection/deprecated-classes.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,19 @@
use Yoast\WP\SEO\Integrations\Third_Party\Wincher;
use Yoast\WP\SEO\Integrations\Third_Party\Wordproof;
use Yoast\WP\SEO\Integrations\Third_Party\Wordproof_Integration_Toggle;
use Yoast\WP\SEO\Introductions\Application\Ai_Generate_Titles_And_Descriptions_Introduction_Upsell;

$deprecated_classes = [
Old_Premium_Integration::class => '20.10',
Wincher::class => '21.6',
Wordproof_Integration_Toggle::class => '21.6',
Wordproof::class => '22.10',
Wordproof_Integration_Active_Conditional::class => '22.10',
Wordproof_Plugin_Inactive_Conditional::class => '22.10',
Wordproof_App_Config::class => '22.10',
Wordproof_Translations::class => '22.10',
Wordproof_Helper::class => '22.10',
Old_Premium_Integration::class => '20.10',
Wincher::class => '21.6',
Wordproof_Integration_Toggle::class => '21.6',
Wordproof::class => '22.10',
Wordproof_Integration_Active_Conditional::class => '22.10',
Wordproof_Plugin_Inactive_Conditional::class => '22.10',
Wordproof_App_Config::class => '22.10',
Wordproof_Translations::class => '22.10',
Wordproof_Helper::class => '22.10',
Ai_Generate_Titles_And_Descriptions_Introduction_Upsell::class => '23.2',
];

foreach ( $deprecated_classes as $original_class => $version ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
* {@internal As this file is just (temporarily) put in place to warn extending
* plugins about the class name changes, it is exempt from select CS standards.}
*
* @package Yoast\WP\SEO
*
* @since 23.2
* @deprecated 23.2
*
* @codeCoverageIgnore
*
* @phpcs:disable Generic.Files.OneObjectStructurePerFile.MultipleFound
* @phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedNamespaceFound
* @phpcs:disable Yoast.Commenting.CodeCoverageIgnoreDeprecated
Expand Down

0 comments on commit b509991

Please sign in to comment.