Merged in feature/117-dev-dev01 (pull request #8)
auto-patch 117-dev-dev01-2023-12-15T16_09_06 * auto-patch 117-dev-dev01-2023-12-15T16_09_06
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace Yoast\WP\SEO\Builders;
|
||||
|
||||
use wpdb;
|
||||
use Yoast\WP\SEO\Exceptions\Indexable\Author_Not_Built_Exception;
|
||||
use Yoast\WP\SEO\Helpers\Author_Archive_Helper;
|
||||
use Yoast\WP\SEO\Helpers\Options_Helper;
|
||||
@@ -47,13 +46,6 @@ class Indexable_Author_Builder {
|
||||
*/
|
||||
protected $post_helper;
|
||||
|
||||
/**
|
||||
* The WPDB instance.
|
||||
*
|
||||
* @var wpdb
|
||||
*/
|
||||
protected $wpdb;
|
||||
|
||||
/**
|
||||
* Indexable_Author_Builder constructor.
|
||||
*
|
||||
@@ -61,20 +53,17 @@ class Indexable_Author_Builder {
|
||||
* @param Indexable_Builder_Versions $versions The Indexable version manager.
|
||||
* @param Options_Helper $options_helper The options helper.
|
||||
* @param Post_Helper $post_helper The post helper.
|
||||
* @param wpdb $wpdb The WPDB instance.
|
||||
*/
|
||||
public function __construct(
|
||||
Author_Archive_Helper $author_archive,
|
||||
Indexable_Builder_Versions $versions,
|
||||
Options_Helper $options_helper,
|
||||
Post_Helper $post_helper,
|
||||
wpdb $wpdb
|
||||
Post_Helper $post_helper
|
||||
) {
|
||||
$this->author_archive = $author_archive;
|
||||
$this->version = $versions->get_latest_version_for_type( 'user' );
|
||||
$this->options_helper = $options_helper;
|
||||
$this->post_helper = $post_helper;
|
||||
$this->wpdb = $wpdb;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -194,20 +183,35 @@ class Indexable_Author_Builder {
|
||||
* @return object An object with last_modified and published_at timestamps.
|
||||
*/
|
||||
protected function get_object_timestamps( $author_id ) {
|
||||
global $wpdb;
|
||||
$post_statuses = $this->post_helper->get_public_post_statuses();
|
||||
|
||||
$sql = "
|
||||
SELECT MAX(p.post_modified_gmt) AS last_modified, MIN(p.post_date_gmt) AS published_at
|
||||
FROM {$this->wpdb->posts} AS p
|
||||
WHERE p.post_status IN (" . \implode( ', ', \array_fill( 0, \count( $post_statuses ), '%s' ) ) . ")
|
||||
AND p.post_password = ''
|
||||
AND p.post_author = %d
|
||||
";
|
||||
$replacements = [];
|
||||
$replacements[] = 'post_modified_gmt';
|
||||
$replacements[] = 'post_date_gmt';
|
||||
$replacements[] = $wpdb->posts;
|
||||
$replacements[] = 'post_status';
|
||||
$replacements = \array_merge( $replacements, $post_statuses );
|
||||
$replacements[] = 'post_password';
|
||||
$replacements[] = 'post_author';
|
||||
$replacements[] = $author_id;
|
||||
|
||||
$replacements = \array_merge( $post_statuses, [ $author_id ] );
|
||||
|
||||
// phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- We are using wpdb prepare.
|
||||
return $this->wpdb->get_row( $this->wpdb->prepare( $sql, $replacements ) );
|
||||
//phpcs:disable WordPress.DB.PreparedSQLPlaceholders -- %i placeholder is still not recognized.
|
||||
//phpcs:disable WordPress.DB.DirectDatabaseQuery.DirectQuery -- Reason: Most performant way.
|
||||
//phpcs:disable WordPress.DB.DirectDatabaseQuery.NoCaching -- Reason: No relevant caches.
|
||||
return $wpdb->get_row(
|
||||
$wpdb->prepare(
|
||||
'
|
||||
SELECT MAX(p.%i) AS last_modified, MIN(p.%i) AS published_at
|
||||
FROM %i AS p
|
||||
WHERE p.%i IN (' . \implode( ', ', \array_fill( 0, \count( $post_statuses ), '%s' ) ) . ")
|
||||
AND p.%i = ''
|
||||
AND p.%i = %d
|
||||
",
|
||||
$replacements
|
||||
)
|
||||
);
|
||||
//phpcs:enable
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -46,13 +46,6 @@ class Indexable_Home_Page_Builder {
|
||||
*/
|
||||
protected $post_helper;
|
||||
|
||||
/**
|
||||
* The WPDB instance.
|
||||
*
|
||||
* @var wpdb
|
||||
*/
|
||||
protected $wpdb;
|
||||
|
||||
/**
|
||||
* Indexable_Home_Page_Builder constructor.
|
||||
*
|
||||
@@ -60,20 +53,17 @@ class Indexable_Home_Page_Builder {
|
||||
* @param Url_Helper $url_helper The url helper.
|
||||
* @param Indexable_Builder_Versions $versions Knows the latest version of each Indexable type.
|
||||
* @param Post_Helper $post_helper The post helper.
|
||||
* @param wpdb $wpdb The WPDB instance.
|
||||
*/
|
||||
public function __construct(
|
||||
Options_Helper $options,
|
||||
Url_Helper $url_helper,
|
||||
Indexable_Builder_Versions $versions,
|
||||
Post_Helper $post_helper,
|
||||
wpdb $wpdb
|
||||
Post_Helper $post_helper
|
||||
) {
|
||||
$this->options = $options;
|
||||
$this->url_helper = $url_helper;
|
||||
$this->version = $versions->get_latest_version_for_type( 'home-page' );
|
||||
$this->post_helper = $post_helper;
|
||||
$this->wpdb = $wpdb;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -127,17 +117,33 @@ class Indexable_Home_Page_Builder {
|
||||
* @return object An object with last_modified and published_at timestamps.
|
||||
*/
|
||||
protected function get_object_timestamps() {
|
||||
global $wpdb;
|
||||
$post_statuses = $this->post_helper->get_public_post_statuses();
|
||||
|
||||
$sql = "
|
||||
SELECT MAX(p.post_modified_gmt) AS last_modified, MIN(p.post_date_gmt) AS published_at
|
||||
FROM {$this->wpdb->posts} AS p
|
||||
WHERE p.post_status IN (" . \implode( ', ', \array_fill( 0, \count( $post_statuses ), '%s' ) ) . ")
|
||||
AND p.post_password = ''
|
||||
AND p.post_type = 'post'
|
||||
";
|
||||
$replacements = [];
|
||||
$replacements[] = 'post_modified_gmt';
|
||||
$replacements[] = 'post_date_gmt';
|
||||
$replacements[] = $wpdb->posts;
|
||||
$replacements[] = 'post_status';
|
||||
$replacements = \array_merge( $replacements, $post_statuses );
|
||||
$replacements[] = 'post_password';
|
||||
$replacements[] = 'post_type';
|
||||
|
||||
// phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- We are using wpdb prepare.
|
||||
return $this->wpdb->get_row( $this->wpdb->prepare( $sql, $post_statuses ) );
|
||||
//phpcs:disable WordPress.DB.PreparedSQLPlaceholders -- %i placeholder is still not recognized.
|
||||
//phpcs:disable WordPress.DB.DirectDatabaseQuery.DirectQuery -- Reason: Most performant way.
|
||||
//phpcs:disable WordPress.DB.DirectDatabaseQuery.NoCaching -- Reason: No relevant caches.
|
||||
return $wpdb->get_row(
|
||||
$wpdb->prepare(
|
||||
'
|
||||
SELECT MAX(p.%i) AS last_modified, MIN(p.%i) AS published_at
|
||||
FROM %i AS p
|
||||
WHERE p.%i IN (' . \implode( ', ', \array_fill( 0, \count( $post_statuses ), '%s' ) ) . ")
|
||||
AND p.%i = ''
|
||||
AND p.%i = 'post'
|
||||
",
|
||||
$replacements
|
||||
)
|
||||
);
|
||||
//phpcs:enable
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace Yoast\WP\SEO\Builders;
|
||||
|
||||
use wpdb;
|
||||
use Yoast\WP\SEO\Exceptions\Indexable\Post_Type_Not_Built_Exception;
|
||||
use Yoast\WP\SEO\Helpers\Options_Helper;
|
||||
use Yoast\WP\SEO\Helpers\Post_Helper;
|
||||
@@ -45,13 +44,6 @@ class Indexable_Post_Type_Archive_Builder {
|
||||
*/
|
||||
protected $post_type_helper;
|
||||
|
||||
/**
|
||||
* The WPDB instance.
|
||||
*
|
||||
* @var wpdb
|
||||
*/
|
||||
protected $wpdb;
|
||||
|
||||
/**
|
||||
* Indexable_Post_Type_Archive_Builder constructor.
|
||||
*
|
||||
@@ -59,20 +51,17 @@ class Indexable_Post_Type_Archive_Builder {
|
||||
* @param Indexable_Builder_Versions $versions The latest version of each Indexable builder.
|
||||
* @param Post_Helper $post_helper The post helper.
|
||||
* @param Post_Type_Helper $post_type_helper The post type helper.
|
||||
* @param wpdb $wpdb The WPDB instance.
|
||||
*/
|
||||
public function __construct(
|
||||
Options_Helper $options,
|
||||
Indexable_Builder_Versions $versions,
|
||||
Post_Helper $post_helper,
|
||||
Post_Type_Helper $post_type_helper,
|
||||
wpdb $wpdb
|
||||
Post_Type_Helper $post_type_helper
|
||||
) {
|
||||
$this->options = $options;
|
||||
$this->version = $versions->get_latest_version_for_type( 'post-type-archive' );
|
||||
$this->post_helper = $post_helper;
|
||||
$this->post_type_helper = $post_type_helper;
|
||||
$this->wpdb = $wpdb;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -146,19 +135,34 @@ class Indexable_Post_Type_Archive_Builder {
|
||||
* @return object An object with last_modified and published_at timestamps.
|
||||
*/
|
||||
protected function get_object_timestamps( $post_type ) {
|
||||
global $wpdb;
|
||||
$post_statuses = $this->post_helper->get_public_post_statuses();
|
||||
|
||||
$sql = "
|
||||
SELECT MAX(p.post_modified_gmt) AS last_modified, MIN(p.post_date_gmt) AS published_at
|
||||
FROM {$this->wpdb->posts} AS p
|
||||
WHERE p.post_status IN (" . \implode( ', ', \array_fill( 0, \count( $post_statuses ), '%s' ) ) . ")
|
||||
AND p.post_password = ''
|
||||
AND p.post_type = %s
|
||||
";
|
||||
$replacements = [];
|
||||
$replacements[] = 'post_modified_gmt';
|
||||
$replacements[] = 'post_date_gmt';
|
||||
$replacements[] = $wpdb->posts;
|
||||
$replacements[] = 'post_status';
|
||||
$replacements = \array_merge( $replacements, $post_statuses );
|
||||
$replacements[] = 'post_password';
|
||||
$replacements[] = 'post_type';
|
||||
$replacements[] = $post_type;
|
||||
|
||||
$replacements = \array_merge( $post_statuses, [ $post_type ] );
|
||||
|
||||
// phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- We are using wpdb prepare.
|
||||
return $this->wpdb->get_row( $this->wpdb->prepare( $sql, $replacements ) );
|
||||
//phpcs:disable WordPress.DB.PreparedSQLPlaceholders -- %i placeholder is still not recognized.
|
||||
//phpcs:disable WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- We need to use a direct query here.
|
||||
//phpcs:disable WordPress.DB.DirectDatabaseQuery.NoCaching -- Reason: No relevant caches.
|
||||
return $wpdb->get_row(
|
||||
$wpdb->prepare(
|
||||
'
|
||||
SELECT MAX(p.%i) AS last_modified, MIN(p.%i) AS published_at
|
||||
FROM %i AS p
|
||||
WHERE p.%i IN (' . \implode( ', ', \array_fill( 0, \count( $post_statuses ), '%s' ) ) . ")
|
||||
AND p.%i = ''
|
||||
AND p.%i = %s
|
||||
",
|
||||
$replacements
|
||||
)
|
||||
);
|
||||
//phpcs:enable
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace Yoast\WP\SEO\Builders;
|
||||
|
||||
use wpdb;
|
||||
use Yoast\WP\SEO\Exceptions\Indexable\Invalid_Term_Exception;
|
||||
use Yoast\WP\SEO\Exceptions\Indexable\Term_Not_Built_Exception;
|
||||
use Yoast\WP\SEO\Exceptions\Indexable\Term_Not_Found_Exception;
|
||||
@@ -41,31 +40,21 @@ class Indexable_Term_Builder {
|
||||
*/
|
||||
protected $post_helper;
|
||||
|
||||
/**
|
||||
* The WPDB instance.
|
||||
*
|
||||
* @var wpdb
|
||||
*/
|
||||
protected $wpdb;
|
||||
|
||||
/**
|
||||
* Indexable_Term_Builder constructor.
|
||||
*
|
||||
* @param Taxonomy_Helper $taxonomy_helper The taxonomy helper.
|
||||
* @param Indexable_Builder_Versions $versions The latest version of each Indexable Builder.
|
||||
* @param Post_Helper $post_helper The post helper.
|
||||
* @param wpdb $wpdb The WPDB instance.
|
||||
*/
|
||||
public function __construct(
|
||||
Taxonomy_Helper $taxonomy_helper,
|
||||
Indexable_Builder_Versions $versions,
|
||||
Post_Helper $post_helper,
|
||||
wpdb $wpdb
|
||||
Post_Helper $post_helper
|
||||
) {
|
||||
$this->taxonomy_helper = $taxonomy_helper;
|
||||
$this->version = $versions->get_latest_version_for_type( 'term' );
|
||||
$this->post_helper = $post_helper;
|
||||
$this->wpdb = $wpdb;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -256,24 +245,47 @@ class Indexable_Term_Builder {
|
||||
* @return object An object with last_modified and published_at timestamps.
|
||||
*/
|
||||
protected function get_object_timestamps( $term_id, $taxonomy ) {
|
||||
global $wpdb;
|
||||
$post_statuses = $this->post_helper->get_public_post_statuses();
|
||||
|
||||
$sql = "
|
||||
SELECT MAX(p.post_modified_gmt) AS last_modified, MIN(p.post_date_gmt) AS published_at
|
||||
FROM {$this->wpdb->posts} AS p
|
||||
INNER JOIN {$this->wpdb->term_relationships} AS term_rel
|
||||
ON term_rel.object_id = p.ID
|
||||
INNER JOIN {$this->wpdb->term_taxonomy} AS term_tax
|
||||
ON term_tax.term_taxonomy_id = term_rel.term_taxonomy_id
|
||||
AND term_tax.taxonomy = %s
|
||||
AND term_tax.term_id = %d
|
||||
WHERE p.post_status IN (" . \implode( ', ', \array_fill( 0, \count( $post_statuses ), '%s' ) ) . ")
|
||||
AND p.post_password = ''
|
||||
";
|
||||
$replacements = [];
|
||||
$replacements[] = 'post_modified_gmt';
|
||||
$replacements[] = 'post_date_gmt';
|
||||
$replacements[] = $wpdb->posts;
|
||||
$replacements[] = $wpdb->term_relationships;
|
||||
$replacements[] = 'object_id';
|
||||
$replacements[] = 'ID';
|
||||
$replacements[] = $wpdb->term_taxonomy;
|
||||
$replacements[] = 'term_taxonomy_id';
|
||||
$replacements[] = 'term_taxonomy_id';
|
||||
$replacements[] = 'taxonomy';
|
||||
$replacements[] = $taxonomy;
|
||||
$replacements[] = 'term_id';
|
||||
$replacements[] = $term_id;
|
||||
$replacements[] = 'post_status';
|
||||
$replacements = \array_merge( $replacements, $post_statuses );
|
||||
$replacements[] = 'post_password';
|
||||
|
||||
$replacements = \array_merge( [ $taxonomy, $term_id ], $post_statuses );
|
||||
|
||||
// phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- We are using wpdb prepare.
|
||||
return $this->wpdb->get_row( $this->wpdb->prepare( $sql, $replacements ) );
|
||||
//phpcs:disable WordPress.DB.PreparedSQLPlaceholders -- %i placeholder is still not recognized.
|
||||
//phpcs:disable WordPress.DB.DirectDatabaseQuery.DirectQuery -- Reason: Most performant way.
|
||||
//phpcs:disable WordPress.DB.DirectDatabaseQuery.NoCaching -- Reason: No relevant caches.
|
||||
return $wpdb->get_row(
|
||||
$wpdb->prepare(
|
||||
'
|
||||
SELECT MAX(p.%i) AS last_modified, MIN(p.%i) AS published_at
|
||||
FROM %i AS p
|
||||
INNER JOIN %i AS term_rel
|
||||
ON term_rel.%i = p.%i
|
||||
INNER JOIN %i AS term_tax
|
||||
ON term_tax.%i = term_rel.%i
|
||||
AND term_tax.%i = %s
|
||||
AND term_tax.%i = %d
|
||||
WHERE p.%i IN (' . \implode( ', ', \array_fill( 0, \count( $post_statuses ), '%s' ) ) . ")
|
||||
AND p.%i = ''
|
||||
",
|
||||
$replacements
|
||||
)
|
||||
);
|
||||
//phpcs:enable
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
<?php return array('reduxJsToolkit.js' => array('dependencies' => array('wp-polyfill', 'yoast-seo-redux-package'), 'version' => '7a02cd645c93ccc0d38e8aa3df9e7e6e'), 'analysisReport.js' => array('dependencies' => array('lodash', 'react', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-components-new-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package'), 'version' => '3e0dd0f403f0312666bca23bb3553d3f'), 'componentsNew.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-react-select', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package'), 'version' => 'fa5f867dfe826d86ea053c23ff526a99'), 'featureFlag.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'e31079ea733c63b5c6d6beb19648e8dd'), 'helpers.js' => array('dependencies' => array('lodash', 'react', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-prop-types-package', 'yoast-seo-styled-components-package'), 'version' => '9419e6f0040a66a3a62429d7c2b89773'), 'replacementVariableEditor.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'yoast-seo-components-new-package', 'yoast-seo-draft-js-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package'), 'version' => '406107184945fa5359e470e658e88c02'), 'searchMetadataPreviews.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-analysis-package', 'yoast-seo-components-new-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-replacement-variable-editor-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package'), 'version' => 'efefc8318de5b14454bf87d9339b0fe7'), 'socialMetadataForms.js' => array('dependencies' => array('lodash', 'react', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-components-new-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-redux-package', 'yoast-seo-replacement-variable-editor-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package'), 'version' => 'fd9577d451151c11845c5389a5584646'), 'styleGuide.js' => array('dependencies' => array('wp-polyfill', 'yoast-seo-helpers-package', 'yoast-seo-styled-components-package'), 'version' => '5990e0e44726b9493b0e4e16d76f7e58'), 'uiLibrary.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-element', 'wp-polyfill', 'yoast-seo-prop-types-package', 'yoast-seo-redux-js-toolkit-package'), 'version' => '69a3938cf99bd9231f5ff73703244211'), 'chart.js.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'f19164afd9b3f6267a7d0fe22ec28c17'), 'draftJs.js' => array('dependencies' => array('react', 'react-dom', 'wp-polyfill'), 'version' => 'd73315f32879dd39faa60448f109912e'), 'jed.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b9a5413d15ff8168fa70ddf19ee0c6ff'), 'propTypes.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b1e0d995706673946d80aa5c218c5a9b'), 'reactHelmet.js' => array('dependencies' => array('react', 'wp-polyfill', 'yoast-seo-prop-types-package'), 'version' => '1f1e314b2b6a9e4a288f725fd3e76f82'), 'redux.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'eeacc8273ca89b1b968d6bede4d6a2e7'), 'styledComponents.js' => array('dependencies' => array('react', 'wp-polyfill'), 'version' => '8cfaf0e68420af8843ddf32492814cd0'), 'components.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-analysis-report-package', 'yoast-seo-components-new-package', 'yoast-seo-helpers-package', 'yoast-seo-jed-package', 'yoast-seo-prop-types-package', 'yoast-seo-redux-package', 'yoast-seo-replacement-variable-editor-package', 'yoast-seo-search-metadata-previews-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package'), 'version' => '268914521d9ef0412aefb5aa144e00df'), 'analysis.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill', 'yoast-seo-feature-flag-package'), 'version' => '8b388c167a87083f6e58b17a7a9c4908'));
|
||||
<?php return array('reduxJsToolkit.js' => array('dependencies' => array('wp-polyfill', 'yoast-seo-redux-package'), 'version' => '7a02cd645c93ccc0d38e8aa3df9e7e6e'), 'analysisReport.js' => array('dependencies' => array('lodash', 'react', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-components-new-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package'), 'version' => '3e0dd0f403f0312666bca23bb3553d3f'), 'componentsNew.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-react-select', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package'), 'version' => 'fa5f867dfe826d86ea053c23ff526a99'), 'featureFlag.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'e31079ea733c63b5c6d6beb19648e8dd'), 'helpers.js' => array('dependencies' => array('lodash', 'react', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-prop-types-package', 'yoast-seo-styled-components-package'), 'version' => '9419e6f0040a66a3a62429d7c2b89773'), 'replacementVariableEditor.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-components', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'yoast-seo-components-new-package', 'yoast-seo-draft-js-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package'), 'version' => '406107184945fa5359e470e658e88c02'), 'searchMetadataPreviews.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-analysis-package', 'yoast-seo-components-new-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-replacement-variable-editor-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package'), 'version' => 'efefc8318de5b14454bf87d9339b0fe7'), 'socialMetadataForms.js' => array('dependencies' => array('lodash', 'react', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-components-new-package', 'yoast-seo-helpers-package', 'yoast-seo-prop-types-package', 'yoast-seo-redux-package', 'yoast-seo-replacement-variable-editor-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package'), 'version' => 'fd9577d451151c11845c5389a5584646'), 'styleGuide.js' => array('dependencies' => array('wp-polyfill', 'yoast-seo-helpers-package', 'yoast-seo-styled-components-package'), 'version' => '5990e0e44726b9493b0e4e16d76f7e58'), 'uiLibrary.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-element', 'wp-polyfill', 'yoast-seo-prop-types-package', 'yoast-seo-redux-js-toolkit-package'), 'version' => '69a3938cf99bd9231f5ff73703244211'), 'chart.js.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'f19164afd9b3f6267a7d0fe22ec28c17'), 'draftJs.js' => array('dependencies' => array('react', 'react-dom', 'wp-polyfill'), 'version' => 'd73315f32879dd39faa60448f109912e'), 'jed.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b9a5413d15ff8168fa70ddf19ee0c6ff'), 'propTypes.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b1e0d995706673946d80aa5c218c5a9b'), 'reactHelmet.js' => array('dependencies' => array('react', 'wp-polyfill', 'yoast-seo-prop-types-package'), 'version' => '1f1e314b2b6a9e4a288f725fd3e76f82'), 'redux.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'eeacc8273ca89b1b968d6bede4d6a2e7'), 'styledComponents.js' => array('dependencies' => array('react', 'wp-polyfill'), 'version' => '8cfaf0e68420af8843ddf32492814cd0'), 'components.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-element', 'wp-i18n', 'wp-polyfill', 'yoast-seo-analysis-report-package', 'yoast-seo-components-new-package', 'yoast-seo-helpers-package', 'yoast-seo-jed-package', 'yoast-seo-prop-types-package', 'yoast-seo-redux-package', 'yoast-seo-replacement-variable-editor-package', 'yoast-seo-search-metadata-previews-package', 'yoast-seo-style-guide-package', 'yoast-seo-styled-components-package'), 'version' => '268914521d9ef0412aefb5aa144e00df'), 'analysis.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill', 'yoast-seo-feature-flag-package'), 'version' => '96b61fda158969fd07cdfae58b1fa38f'));
|
||||
File diff suppressed because one or more lines are too long
@@ -1479,7 +1479,7 @@ class Cached_Container extends Container
|
||||
return $this->services['Yoast\\WP\\SEO\\Builders\\Indexable_Author_Builder'];
|
||||
}
|
||||
|
||||
$this->services['Yoast\\WP\\SEO\\Builders\\Indexable_Author_Builder'] = $instance = new \Yoast\WP\SEO\Builders\Indexable_Author_Builder(${($_ = isset($this->services['Yoast\\WP\\SEO\\Helpers\\Author_Archive_Helper']) ? $this->services['Yoast\\WP\\SEO\\Helpers\\Author_Archive_Helper'] : $this->getAuthorArchiveHelperService()) && false ?: '_'}, ${($_ = isset($this->services['Yoast\\WP\\SEO\\Values\\Indexables\\Indexable_Builder_Versions']) ? $this->services['Yoast\\WP\\SEO\\Values\\Indexables\\Indexable_Builder_Versions'] : ($this->services['Yoast\\WP\\SEO\\Values\\Indexables\\Indexable_Builder_Versions'] = new \Yoast\WP\SEO\Values\Indexables\Indexable_Builder_Versions())) && false ?: '_'}, ${($_ = isset($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper']) ? $this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] : ($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] = new \Yoast\WP\SEO\Helpers\Options_Helper())) && false ?: '_'}, $a, ${($_ = isset($this->services['wpdb']) ? $this->services['wpdb'] : $this->getWpdbService()) && false ?: '_'});
|
||||
$this->services['Yoast\\WP\\SEO\\Builders\\Indexable_Author_Builder'] = $instance = new \Yoast\WP\SEO\Builders\Indexable_Author_Builder(${($_ = isset($this->services['Yoast\\WP\\SEO\\Helpers\\Author_Archive_Helper']) ? $this->services['Yoast\\WP\\SEO\\Helpers\\Author_Archive_Helper'] : $this->getAuthorArchiveHelperService()) && false ?: '_'}, ${($_ = isset($this->services['Yoast\\WP\\SEO\\Values\\Indexables\\Indexable_Builder_Versions']) ? $this->services['Yoast\\WP\\SEO\\Values\\Indexables\\Indexable_Builder_Versions'] : ($this->services['Yoast\\WP\\SEO\\Values\\Indexables\\Indexable_Builder_Versions'] = new \Yoast\WP\SEO\Values\Indexables\Indexable_Builder_Versions())) && false ?: '_'}, ${($_ = isset($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper']) ? $this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] : ($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] = new \Yoast\WP\SEO\Helpers\Options_Helper())) && false ?: '_'}, $a);
|
||||
|
||||
$instance->set_social_image_helpers(${($_ = isset($this->services['Yoast\\WP\\SEO\\Helpers\\Image_Helper']) ? $this->services['Yoast\\WP\\SEO\\Helpers\\Image_Helper'] : $this->getImageHelperService()) && false ?: '_'}, ${($_ = isset($this->services['Yoast\\WP\\SEO\\Helpers\\Open_Graph\\Image_Helper']) ? $this->services['Yoast\\WP\\SEO\\Helpers\\Open_Graph\\Image_Helper'] : $this->getImageHelper2Service()) && false ?: '_'}, ${($_ = isset($this->services['Yoast\\WP\\SEO\\Helpers\\Twitter\\Image_Helper']) ? $this->services['Yoast\\WP\\SEO\\Helpers\\Twitter\\Image_Helper'] : $this->getImageHelper4Service()) && false ?: '_'});
|
||||
|
||||
@@ -1589,7 +1589,7 @@ class Cached_Container extends Container
|
||||
return $this->services['Yoast\\WP\\SEO\\Builders\\Indexable_Home_Page_Builder'];
|
||||
}
|
||||
|
||||
$this->services['Yoast\\WP\\SEO\\Builders\\Indexable_Home_Page_Builder'] = $instance = new \Yoast\WP\SEO\Builders\Indexable_Home_Page_Builder(${($_ = isset($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper']) ? $this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] : ($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] = new \Yoast\WP\SEO\Helpers\Options_Helper())) && false ?: '_'}, ${($_ = isset($this->services['Yoast\\WP\\SEO\\Helpers\\Url_Helper']) ? $this->services['Yoast\\WP\\SEO\\Helpers\\Url_Helper'] : ($this->services['Yoast\\WP\\SEO\\Helpers\\Url_Helper'] = new \Yoast\WP\SEO\Helpers\Url_Helper())) && false ?: '_'}, ${($_ = isset($this->services['Yoast\\WP\\SEO\\Values\\Indexables\\Indexable_Builder_Versions']) ? $this->services['Yoast\\WP\\SEO\\Values\\Indexables\\Indexable_Builder_Versions'] : ($this->services['Yoast\\WP\\SEO\\Values\\Indexables\\Indexable_Builder_Versions'] = new \Yoast\WP\SEO\Values\Indexables\Indexable_Builder_Versions())) && false ?: '_'}, $a, ${($_ = isset($this->services['wpdb']) ? $this->services['wpdb'] : $this->getWpdbService()) && false ?: '_'});
|
||||
$this->services['Yoast\\WP\\SEO\\Builders\\Indexable_Home_Page_Builder'] = $instance = new \Yoast\WP\SEO\Builders\Indexable_Home_Page_Builder(${($_ = isset($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper']) ? $this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] : ($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] = new \Yoast\WP\SEO\Helpers\Options_Helper())) && false ?: '_'}, ${($_ = isset($this->services['Yoast\\WP\\SEO\\Helpers\\Url_Helper']) ? $this->services['Yoast\\WP\\SEO\\Helpers\\Url_Helper'] : ($this->services['Yoast\\WP\\SEO\\Helpers\\Url_Helper'] = new \Yoast\WP\SEO\Helpers\Url_Helper())) && false ?: '_'}, ${($_ = isset($this->services['Yoast\\WP\\SEO\\Values\\Indexables\\Indexable_Builder_Versions']) ? $this->services['Yoast\\WP\\SEO\\Values\\Indexables\\Indexable_Builder_Versions'] : ($this->services['Yoast\\WP\\SEO\\Values\\Indexables\\Indexable_Builder_Versions'] = new \Yoast\WP\SEO\Values\Indexables\Indexable_Builder_Versions())) && false ?: '_'}, $a);
|
||||
|
||||
$instance->set_social_image_helpers(${($_ = isset($this->services['Yoast\\WP\\SEO\\Helpers\\Image_Helper']) ? $this->services['Yoast\\WP\\SEO\\Helpers\\Image_Helper'] : $this->getImageHelperService()) && false ?: '_'}, ${($_ = isset($this->services['Yoast\\WP\\SEO\\Helpers\\Open_Graph\\Image_Helper']) ? $this->services['Yoast\\WP\\SEO\\Helpers\\Open_Graph\\Image_Helper'] : $this->getImageHelper2Service()) && false ?: '_'}, ${($_ = isset($this->services['Yoast\\WP\\SEO\\Helpers\\Twitter\\Image_Helper']) ? $this->services['Yoast\\WP\\SEO\\Helpers\\Twitter\\Image_Helper'] : $this->getImageHelper4Service()) && false ?: '_'});
|
||||
|
||||
@@ -1650,7 +1650,7 @@ class Cached_Container extends Container
|
||||
return $this->services['Yoast\\WP\\SEO\\Builders\\Indexable_Post_Type_Archive_Builder'];
|
||||
}
|
||||
|
||||
return $this->services['Yoast\\WP\\SEO\\Builders\\Indexable_Post_Type_Archive_Builder'] = new \Yoast\WP\SEO\Builders\Indexable_Post_Type_Archive_Builder(${($_ = isset($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper']) ? $this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] : ($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] = new \Yoast\WP\SEO\Helpers\Options_Helper())) && false ?: '_'}, ${($_ = isset($this->services['Yoast\\WP\\SEO\\Values\\Indexables\\Indexable_Builder_Versions']) ? $this->services['Yoast\\WP\\SEO\\Values\\Indexables\\Indexable_Builder_Versions'] : ($this->services['Yoast\\WP\\SEO\\Values\\Indexables\\Indexable_Builder_Versions'] = new \Yoast\WP\SEO\Values\Indexables\Indexable_Builder_Versions())) && false ?: '_'}, $a, ${($_ = isset($this->services['Yoast\\WP\\SEO\\Helpers\\Post_Type_Helper']) ? $this->services['Yoast\\WP\\SEO\\Helpers\\Post_Type_Helper'] : $this->getPostTypeHelperService()) && false ?: '_'}, ${($_ = isset($this->services['wpdb']) ? $this->services['wpdb'] : $this->getWpdbService()) && false ?: '_'});
|
||||
return $this->services['Yoast\\WP\\SEO\\Builders\\Indexable_Post_Type_Archive_Builder'] = new \Yoast\WP\SEO\Builders\Indexable_Post_Type_Archive_Builder(${($_ = isset($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper']) ? $this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] : ($this->services['Yoast\\WP\\SEO\\Helpers\\Options_Helper'] = new \Yoast\WP\SEO\Helpers\Options_Helper())) && false ?: '_'}, ${($_ = isset($this->services['Yoast\\WP\\SEO\\Values\\Indexables\\Indexable_Builder_Versions']) ? $this->services['Yoast\\WP\\SEO\\Values\\Indexables\\Indexable_Builder_Versions'] : ($this->services['Yoast\\WP\\SEO\\Values\\Indexables\\Indexable_Builder_Versions'] = new \Yoast\WP\SEO\Values\Indexables\Indexable_Builder_Versions())) && false ?: '_'}, $a, ${($_ = isset($this->services['Yoast\\WP\\SEO\\Helpers\\Post_Type_Helper']) ? $this->services['Yoast\\WP\\SEO\\Helpers\\Post_Type_Helper'] : $this->getPostTypeHelperService()) && false ?: '_'});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1676,7 +1676,7 @@ class Cached_Container extends Container
|
||||
return $this->services['Yoast\\WP\\SEO\\Builders\\Indexable_Term_Builder'];
|
||||
}
|
||||
|
||||
$this->services['Yoast\\WP\\SEO\\Builders\\Indexable_Term_Builder'] = $instance = new \Yoast\WP\SEO\Builders\Indexable_Term_Builder(${($_ = isset($this->services['Yoast\\WP\\SEO\\Helpers\\Taxonomy_Helper']) ? $this->services['Yoast\\WP\\SEO\\Helpers\\Taxonomy_Helper'] : $this->getTaxonomyHelperService()) && false ?: '_'}, ${($_ = isset($this->services['Yoast\\WP\\SEO\\Values\\Indexables\\Indexable_Builder_Versions']) ? $this->services['Yoast\\WP\\SEO\\Values\\Indexables\\Indexable_Builder_Versions'] : ($this->services['Yoast\\WP\\SEO\\Values\\Indexables\\Indexable_Builder_Versions'] = new \Yoast\WP\SEO\Values\Indexables\Indexable_Builder_Versions())) && false ?: '_'}, $a, ${($_ = isset($this->services['wpdb']) ? $this->services['wpdb'] : $this->getWpdbService()) && false ?: '_'});
|
||||
$this->services['Yoast\\WP\\SEO\\Builders\\Indexable_Term_Builder'] = $instance = new \Yoast\WP\SEO\Builders\Indexable_Term_Builder(${($_ = isset($this->services['Yoast\\WP\\SEO\\Helpers\\Taxonomy_Helper']) ? $this->services['Yoast\\WP\\SEO\\Helpers\\Taxonomy_Helper'] : $this->getTaxonomyHelperService()) && false ?: '_'}, ${($_ = isset($this->services['Yoast\\WP\\SEO\\Values\\Indexables\\Indexable_Builder_Versions']) ? $this->services['Yoast\\WP\\SEO\\Values\\Indexables\\Indexable_Builder_Versions'] : ($this->services['Yoast\\WP\\SEO\\Values\\Indexables\\Indexable_Builder_Versions'] = new \Yoast\WP\SEO\Values\Indexables\Indexable_Builder_Versions())) && false ?: '_'}, $a);
|
||||
|
||||
$instance->set_social_image_helpers(${($_ = isset($this->services['Yoast\\WP\\SEO\\Helpers\\Image_Helper']) ? $this->services['Yoast\\WP\\SEO\\Helpers\\Image_Helper'] : $this->getImageHelperService()) && false ?: '_'}, ${($_ = isset($this->services['Yoast\\WP\\SEO\\Helpers\\Open_Graph\\Image_Helper']) ? $this->services['Yoast\\WP\\SEO\\Helpers\\Open_Graph\\Image_Helper'] : $this->getImageHelper2Service()) && false ?: '_'}, ${($_ = isset($this->services['Yoast\\WP\\SEO\\Helpers\\Twitter\\Image_Helper']) ? $this->services['Yoast\\WP\\SEO\\Helpers\\Twitter\\Image_Helper'] : $this->getImageHelper4Service()) && false ?: '_'});
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ class Person extends Abstract_Schema_Piece {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $this->context->site_represents === 'person' || $this->context->indexable->object_type === 'user';
|
||||
return $this->context->site_represents === 'person';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -434,7 +434,8 @@ class Elementor implements Integration_Interface {
|
||||
'has_taxonomies' => $this->current_post_type_has_taxonomies(),
|
||||
],
|
||||
'shortcodes' => [
|
||||
'wpseo_shortcode_tags' => $this->get_valid_shortcode_tags(),
|
||||
'wpseo_shortcode_tags' => $this->get_valid_shortcode_tags(),
|
||||
'wpseo_filter_shortcodes_nonce' => \wp_create_nonce( 'wpseo-filter-shortcodes' ),
|
||||
],
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user