| 1 |
<?php |
| 2 |
// phpcs:disable Yoast.Commenting.FileComment.Unnecessary |
| 3 |
/** |
| 4 |
* Graceful deprecation of various classes which were renamed. |
| 5 |
* |
| 6 |
* {@internal As this file is just (temporarily) put in place to warn extending |
| 7 |
* plugins about the class name changes, it is exempt from select CS standards.} |
| 8 |
* |
| 9 |
* @package Yoast\WP\SEO |
| 10 |
* |
| 11 |
* @since 16.7 |
| 12 |
* @deprecated 16.7 |
| 13 |
* |
| 14 |
* @phpcs:disable Generic.Files.OneObjectStructurePerFile.MultipleFound |
| 15 |
* @phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedNamespaceFound |
| 16 |
* @phpcs:disable Yoast.Commenting.CodeCoverageIgnoreDeprecated |
| 17 |
* @phpcs:disable Yoast.Commenting.FileComment.Unnecessary |
| 18 |
* @phpcs:disable Yoast.Files.FileName.InvalidClassFileName |
| 19 |
*/ |
| 20 |
|
| 21 |
namespace Yoast\WP\SEO\Integrations\Third_Party; |
| 22 |
|
| 23 |
/** |
| 24 |
* Class Elementor_Exclude_Post_Types. |
| 25 |
* |
| 26 |
* @deprecated 16.7 Use {@see \Yoast\WP\SEO\Integrations\Third_Party\Exclude_Elementor_Post_Types} instead. |
| 27 |
*/ |
| 28 |
class Elementor_Exclude_Post_Types extends Exclude_Elementor_Post_Types { |
| 29 |
|
| 30 |
/** |
| 31 |
* Elementor Exclude Post Types constructor. |
| 32 |
* |
| 33 |
* @deprecated 16.7 Use {@see \Yoast\WP\SEO\Integrations\Third_Party\Exclude_Elementor_Post_Types} instead. |
| 34 |
*/ |
| 35 |
public function __construct() { |
| 36 |
\_deprecated_function( __METHOD__, 'Yoast SEO 16.7', '\Yoast\WP\SEO\Integrations\Third_Party\Exclude_Elementor_Post_Types' ); |
| 37 |
|
| 38 |
// Only call a constructor if the parent has one; we already are a subclass of the parent. |
| 39 |
if ( \is_callable( 'parent::__construct' ) ) { |
| 40 |
parent::__construct(); |
| 41 |
} |
| 42 |
} |
| 43 |
} |
| 44 |
|