rebase on oct-10-2023
This commit is contained in:
@@ -10,14 +10,17 @@ use Yoast\WP\SEO\Models\Indexable;
|
||||
*
|
||||
* Presentation object for indexables.
|
||||
*
|
||||
* @property Indexable $model The indexable.
|
||||
* @property Pagination_Helper $pagination The pagination helper. Should be defined in the parent
|
||||
* class because of trait issues in PHP 5.6.
|
||||
* For a detailed explanation of the issue, see
|
||||
* {@link https://github.com/Yoast/wordpress-seo/pull/18820}.
|
||||
* @property Indexable $model The indexable.
|
||||
*/
|
||||
trait Archive_Adjacent {
|
||||
|
||||
/**
|
||||
* Holds the Pagination_Helper instance.
|
||||
*
|
||||
* @var Pagination_Helper
|
||||
*/
|
||||
protected $pagination;
|
||||
|
||||
/**
|
||||
* Sets the helpers for the trait.
|
||||
*
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
namespace Yoast\WP\SEO\Presentations;
|
||||
|
||||
use Yoast\WP\SEO\Helpers\Author_Archive_Helper;
|
||||
use Yoast\WP\SEO\Helpers\Pagination_Helper;
|
||||
use Yoast\WP\SEO\Helpers\Post_Type_Helper;
|
||||
|
||||
/**
|
||||
@@ -29,13 +28,6 @@ class Indexable_Author_Archive_Presentation extends Indexable_Presentation {
|
||||
*/
|
||||
protected $author_archive;
|
||||
|
||||
/**
|
||||
* Holds the Pagination_Helper instance.
|
||||
*
|
||||
* @var Pagination_Helper
|
||||
*/
|
||||
protected $pagination;
|
||||
|
||||
/**
|
||||
* Indexable_Author_Archive_Presentation constructor.
|
||||
*
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Yoast\WP\SEO\Presentations;
|
||||
|
||||
use Yoast\WP\SEO\Helpers\Pagination_Helper;
|
||||
|
||||
/**
|
||||
* Class Indexable_Home_Page_Presentation.
|
||||
*
|
||||
@@ -13,13 +11,6 @@ class Indexable_Home_Page_Presentation extends Indexable_Presentation {
|
||||
|
||||
use Archive_Adjacent;
|
||||
|
||||
/**
|
||||
* Holds the Pagination_Helper instance.
|
||||
*
|
||||
* @var Pagination_Helper
|
||||
*/
|
||||
protected $pagination;
|
||||
|
||||
/**
|
||||
* Generates the canonical.
|
||||
*
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Yoast\WP\SEO\Presentations;
|
||||
|
||||
use Yoast\WP\SEO\Helpers\Pagination_Helper;
|
||||
|
||||
/**
|
||||
* Class Indexable_Post_Type_Archive_Presentation.
|
||||
*
|
||||
@@ -13,13 +11,6 @@ class Indexable_Post_Type_Archive_Presentation extends Indexable_Presentation {
|
||||
|
||||
use Archive_Adjacent;
|
||||
|
||||
/**
|
||||
* Holds the Pagination_Helper instance.
|
||||
*
|
||||
* @var Pagination_Helper
|
||||
*/
|
||||
protected $pagination;
|
||||
|
||||
/**
|
||||
* Generates the canonical.
|
||||
*
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
namespace Yoast\WP\SEO\Presentations;
|
||||
|
||||
use WP_Term;
|
||||
use Yoast\WP\SEO\Helpers\Pagination_Helper;
|
||||
use Yoast\WP\SEO\Helpers\Taxonomy_Helper;
|
||||
use Yoast\WP\SEO\Wrappers\WP_Query_Wrapper;
|
||||
|
||||
@@ -18,13 +17,6 @@ class Indexable_Term_Archive_Presentation extends Indexable_Presentation {
|
||||
|
||||
use Archive_Adjacent;
|
||||
|
||||
/**
|
||||
* Holds the Pagination_Helper instance.
|
||||
*
|
||||
* @var Pagination_Helper
|
||||
*/
|
||||
protected $pagination;
|
||||
|
||||
/**
|
||||
* Holds the WP query wrapper instance.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user