--- a/wordpress-seo/admin/ajax.php
+++ b/wordpress-seo/admin/ajax.php
@@ -316,7 +316,6 @@
add_action( 'wp_ajax_get_focus_keyword_usage_and_post_types', 'ajax_get_keyword_usage_and_post_types' );
-
/**
* Retrieves the keyword for the keyword doubles of the termpages.
*
--- a/wordpress-seo/admin/class-gutenberg-compatibility.php
+++ b/wordpress-seo/admin/class-gutenberg-compatibility.php
@@ -15,14 +15,14 @@
*
* @var string
*/
- public const CURRENT_RELEASE = '22.3.0';
+ public const CURRENT_RELEASE = '22.4.2';
/**
* The minimally supported version of Gutenberg by the plugin.
*
* @var string
*/
- public const MINIMUM_SUPPORTED = '22.3.0';
+ public const MINIMUM_SUPPORTED = '22.4.2';
/**
* Holds the current version.
--- a/wordpress-seo/inc/class-wpseo-replace-vars.php
+++ b/wordpress-seo/inc/class-wpseo-replace-vars.php
@@ -765,13 +765,13 @@
// Post meta can be arrays and in this case we need to exclude them.
$name = get_post_meta( $this->args->ID, $field, true );
if ( $name !== '' && ! is_array( $name ) ) {
- $replacement = $name;
+ $replacement = sanitize_text_field( $name );
}
}
elseif ( ! empty( $this->args->term_id ) ) {
$name = get_term_meta( $this->args->term_id, $field, true );
if ( $name !== '' ) {
- $replacement = $name;
+ $replacement = sanitize_text_field( $name );
}
}
}
--- a/wordpress-seo/inc/options/class-wpseo-option-titles.php
+++ b/wordpress-seo/inc/options/class-wpseo-option-titles.php
@@ -836,7 +836,6 @@
'metadesc-' => 'metadesc-tax-',
'noindex-' => 'noindex-tax-',
'tax-hideeditbox-' => 'hideeditbox-tax-',
-
];
$taxonomy_names = get_taxonomies( [ 'public' => true ], 'names' );
--- a/wordpress-seo/inc/options/class-wpseo-option-tracking-only.php
+++ b/wordpress-seo/inc/options/class-wpseo-option-tracking-only.php
@@ -27,8 +27,9 @@
* @var array<string, int|string|array<int>>
*/
protected $defaults = [
- 'task_list_first_opened_on' => '',
- 'task_first_actioned_on' => '',
+ 'task_list_first_opened_on' => '',
+ 'task_first_actioned_on' => '',
+ 'frontend_inspector_first_actioned_on' => '',
];
/**
@@ -62,6 +63,7 @@
switch ( $key ) {
case 'task_list_first_opened_on':
case 'task_first_actioned_on':
+ case 'frontend_inspector_first_actioned_on':
// These should be set only once and never changed again (unless completely reset to default).
if ( isset( $dirty[ $key ] ) && $old[ $key ] === $this->get_defaults()[ $key ] ) {
--- a/wordpress-seo/src/ai-authorization/application/code-verifier-handler.php
+++ b/wordpress-seo/src/ai-authorization/application/code-verifier-handler.php
@@ -6,11 +6,13 @@
use YoastWPSEOAI_AuthorizationDomainCode_Verifier;
use YoastWPSEOAI_AuthorizationInfrastructureCode_Verifier_User_Meta_Repository;
use YoastWPSEOHelpersDate_Helper;
+
/**
* Class Code_Verifier_Service
* Handles the generation and validation of code verifiers for users.
*/
class Code_Verifier_Handler implements Code_Verifier_Handler_Interface {
+
private const VALIDITY_IN_SECONDS = 300; // 5 minutes
/**
--- a/wordpress-seo/src/ai-authorization/infrastructure/access-token-user-meta-repository-interface.php
+++ b/wordpress-seo/src/ai-authorization/infrastructure/access-token-user-meta-repository-interface.php
@@ -8,5 +8,6 @@
* @phpcs:disable Yoast.NamingConventions.ObjectNameDepth.MaxExceeded
*/
interface Access_Token_User_Meta_Repository_Interface extends Token_User_Meta_Repository_Interface {
+
public const META_KEY = '_yoast_wpseo_ai_generator_access_jwt';
}
--- a/wordpress-seo/src/ai-authorization/infrastructure/code-verifier-user-meta-repository.php
+++ b/wordpress-seo/src/ai-authorization/infrastructure/code-verifier-user-meta-repository.php
@@ -6,6 +6,7 @@
use YoastWPSEOAI_AuthorizationDomainCode_Verifier;
use YoastWPSEOHelpersDate_Helper;
use YoastWPSEOHelpersUser_Helper;
+
/**
* Class Code_Verifier_Repository
*/
--- a/wordpress-seo/src/ai-authorization/infrastructure/refresh-token-user-meta-repository-interface.php
+++ b/wordpress-seo/src/ai-authorization/infrastructure/refresh-token-user-meta-repository-interface.php
@@ -8,5 +8,6 @@
* @phpcs:disable Yoast.NamingConventions.ObjectNameDepth.MaxExceeded
*/
interface Refresh_Token_User_Meta_Repository_Interface extends Token_User_Meta_Repository_Interface {
+
public const META_KEY = '_yoast_wpseo_ai_generator_refresh_jwt';
}
--- a/wordpress-seo/src/ai-authorization/user-interface/abstract-callback-route.php
+++ b/wordpress-seo/src/ai-authorization/user-interface/abstract-callback-route.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAI_AuthorizationUser_Interface;
--- a/wordpress-seo/src/ai-authorization/user-interface/callback-route.php
+++ b/wordpress-seo/src/ai-authorization/user-interface/callback-route.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAI_AuthorizationUser_Interface;
@@ -10,6 +11,7 @@
* @phpcs:disable Yoast.NamingConventions.ObjectNameDepth.MaxExceeded
*/
class Callback_Route extends Abstract_Callback_Route {
+
/**
* The prefix for this route.
*
--- a/wordpress-seo/src/ai-authorization/user-interface/refresh-callback-route.php
+++ b/wordpress-seo/src/ai-authorization/user-interface/refresh-callback-route.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAI_AuthorizationUser_Interface;
@@ -10,6 +11,7 @@
* @phpcs:disable Yoast.NamingConventions.ObjectNameDepth.MaxExceeded
*/
class Refresh_Callback_Route extends Abstract_Callback_Route {
+
/**
* The prefix for this route.
*
--- a/wordpress-seo/src/ai-consent/domain/endpoint/endpoint-interface.php
+++ b/wordpress-seo/src/ai-consent/domain/endpoint/endpoint-interface.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAI_ConsentDomainEndpoint;
--- a/wordpress-seo/src/ai-consent/infrastructure/endpoints/consent-endpoint.php
+++ b/wordpress-seo/src/ai-consent/infrastructure/endpoints/consent-endpoint.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAI_ConsentInfrastructureEndpoints;
--- a/wordpress-seo/src/ai-consent/user-interface/consent-route.php
+++ b/wordpress-seo/src/ai-consent/user-interface/consent-route.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAI_ConsentUser_Interface;
@@ -27,6 +28,7 @@
* @phpcs:disable Yoast.NamingConventions.ObjectNameDepth.MaxExceeded
*/
class Consent_Route implements Route_Interface {
+
/**
* The namespace for this route.
*
@@ -125,7 +127,7 @@
return new WP_REST_Response( ( $consent ) ? 'Failed to store consent.' : 'Failed to revoke consent.', 500 );
}
- return new WP_REST_Response( ( $consent ) ? 'Consent successfully stored.' : 'Consent successfully revoked.' );
+ return new WP_REST_Response( ( $consent ) ? 'Consent successfully stored.' : 'Consent successfully revoked.' );
}
/**
--- a/wordpress-seo/src/ai-free-sparks/infrastructure/endpoints/free-sparks-endpoint.php
+++ b/wordpress-seo/src/ai-free-sparks/infrastructure/endpoints/free-sparks-endpoint.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAI_Free_SparksInfrastructureEndpoints;
--- a/wordpress-seo/src/ai-free-sparks/user-interface/free-sparks-route.php
+++ b/wordpress-seo/src/ai-free-sparks/user-interface/free-sparks-route.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAI_Free_SparksUser_Interface;
--- a/wordpress-seo/src/ai-generator/domain/endpoint/endpoint-interface.php
+++ b/wordpress-seo/src/ai-generator/domain/endpoint/endpoint-interface.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAI_GeneratorDomainEndpoint;
--- a/wordpress-seo/src/ai-generator/domain/endpoint/endpoint-list.php
+++ b/wordpress-seo/src/ai-generator/domain/endpoint/endpoint-list.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAI_GeneratorDomainEndpoint;
--- a/wordpress-seo/src/ai-generator/infrastructure/endpoints/get-suggestions-endpoint.php
+++ b/wordpress-seo/src/ai-generator/infrastructure/endpoints/get-suggestions-endpoint.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAI_GeneratorInfrastructureEndpoints;
--- a/wordpress-seo/src/ai-generator/infrastructure/endpoints/get-usage-endpoint.php
+++ b/wordpress-seo/src/ai-generator/infrastructure/endpoints/get-usage-endpoint.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAI_GeneratorInfrastructureEndpoints;
--- a/wordpress-seo/src/ai-generator/user-interface/bust-subscription-cache-route.php
+++ b/wordpress-seo/src/ai-generator/user-interface/bust-subscription-cache-route.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAI_GeneratorUser_Interface;
--- a/wordpress-seo/src/ai-generator/user-interface/get-suggestions-route.php
+++ b/wordpress-seo/src/ai-generator/user-interface/get-suggestions-route.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAI_GeneratorUser_Interface;
--- a/wordpress-seo/src/ai-generator/user-interface/get-usage-route.php
+++ b/wordpress-seo/src/ai-generator/user-interface/get-usage-route.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAI_GeneratorUser_Interface;
@@ -123,8 +124,7 @@
$action_path = $this->get_action_path( $is_woo_product_entity );
$response = $this->request_handler->handle( new Request( $action_path, [], $request_headers, false ) );
$data = json_decode( $response->get_body() );
-
- } catch ( Remote_Request_Exception | WP_Request_Exception $e ) {
+ } catch ( Remote_Request_Exception | WP_Request_Exception $e ) {
$message = [
'errorMessage' => $e->getMessage(),
'errorIdentifier' => $e->get_error_identifier(),
--- a/wordpress-seo/src/ai-http-request/application/response-parser.php
+++ b/wordpress-seo/src/ai-http-request/application/response-parser.php
@@ -1,4 +1,5 @@
<?php
+
namespace YoastWPSEOAI_HTTP_RequestApplication;
use YoastWPSEOAI_HTTP_RequestDomainResponse;
--- a/wordpress-seo/src/ai-http-request/domain/exceptions/bad-request-exception.php
+++ b/wordpress-seo/src/ai-http-request/domain/exceptions/bad-request-exception.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAI_HTTP_RequestDomainExceptions;
--- a/wordpress-seo/src/ai-http-request/domain/exceptions/forbidden-exception.php
+++ b/wordpress-seo/src/ai-http-request/domain/exceptions/forbidden-exception.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAI_HTTP_RequestDomainExceptions;
--- a/wordpress-seo/src/ai-http-request/domain/exceptions/internal-server-error-exception.php
+++ b/wordpress-seo/src/ai-http-request/domain/exceptions/internal-server-error-exception.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAI_HTTP_RequestDomainExceptions;
--- a/wordpress-seo/src/ai-http-request/domain/exceptions/not-found-exception.php
+++ b/wordpress-seo/src/ai-http-request/domain/exceptions/not-found-exception.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAI_HTTP_RequestDomainExceptions;
--- a/wordpress-seo/src/ai-http-request/domain/exceptions/payment-required-exception.php
+++ b/wordpress-seo/src/ai-http-request/domain/exceptions/payment-required-exception.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAI_HTTP_RequestDomainExceptions;
--- a/wordpress-seo/src/ai-http-request/domain/exceptions/remote-request-exception.php
+++ b/wordpress-seo/src/ai-http-request/domain/exceptions/remote-request-exception.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAI_HTTP_RequestDomainExceptions;
--- a/wordpress-seo/src/ai-http-request/domain/exceptions/request-timeout-exception.php
+++ b/wordpress-seo/src/ai-http-request/domain/exceptions/request-timeout-exception.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAI_HTTP_RequestDomainExceptions;
--- a/wordpress-seo/src/ai-http-request/domain/exceptions/service-unavailable-exception.php
+++ b/wordpress-seo/src/ai-http-request/domain/exceptions/service-unavailable-exception.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAI_HTTP_RequestDomainExceptions;
--- a/wordpress-seo/src/ai-http-request/domain/exceptions/too-many-requests-exception.php
+++ b/wordpress-seo/src/ai-http-request/domain/exceptions/too-many-requests-exception.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAI_HTTP_RequestDomainExceptions;
--- a/wordpress-seo/src/ai-http-request/domain/exceptions/unauthorized-exception.php
+++ b/wordpress-seo/src/ai-http-request/domain/exceptions/unauthorized-exception.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAI_HTTP_RequestDomainExceptions;
--- a/wordpress-seo/src/ai-http-request/domain/exceptions/wp-request-exception.php
+++ b/wordpress-seo/src/ai-http-request/domain/exceptions/wp-request-exception.php
@@ -1,8 +1,10 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAI_HTTP_RequestDomainExceptions;
use Throwable;
+
/**
* Class to manage an error response in wp_remote_*() requests.
*
--- a/wordpress-seo/src/alerts/application/default-seo-data/default-seo-data-alert.php
+++ b/wordpress-seo/src/alerts/application/default-seo-data/default-seo-data-alert.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAlertsApplicationDefault_SEO_Data;
--- a/wordpress-seo/src/alerts/application/ping-other-admins/ping-other-admins-alert.php
+++ b/wordpress-seo/src/alerts/application/ping-other-admins/ping-other-admins-alert.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAlertsApplicationPing_Other_Admins;
--- a/wordpress-seo/src/alerts/infrastructure/default-seo-data/default-seo-data-collector.php
+++ b/wordpress-seo/src/alerts/infrastructure/default-seo-data/default-seo-data-collector.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
namespace YoastWPSEOAlertsInfrastructureDefault_SEO_Data;
--- a/wordpress-seo/src/alerts/user-interface/default-seo-data/default-seo-data-cron-callback-integration.php
+++ b/wordpress-seo/src/alerts/user-interface/default-seo-data/default-seo-data-cron-callback-integration.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAlertsUser_InterfaceDefault_SEO_Data;
--- a/wordpress-seo/src/alerts/user-interface/default-seo-data/default-seo-data-cron-scheduler.php
+++ b/wordpress-seo/src/alerts/user-interface/default-seo-data/default-seo-data-cron-scheduler.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
namespace YoastWPSEOAlertsUser_InterfaceDefault_Seo_Data;
--- a/wordpress-seo/src/alerts/user-interface/default-seo-data/default-seo-data-watcher.php
+++ b/wordpress-seo/src/alerts/user-interface/default-seo-data/default-seo-data-watcher.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAlertsUser_InterfaceDefault_SEO_Data;
@@ -7,6 +8,7 @@
use YoastWPSEOIntegrationsIntegration_Interface;
use YoastWPSEOModelsIndexable;
use YoastWPSEORepositoriesIndexable_Repository;
+
/**
* This handles the process of checking for non-default SEO in the latest content and updating the relevant options right away.
*/
--- a/wordpress-seo/src/alerts/user-interface/resolve-alert-route.php
+++ b/wordpress-seo/src/alerts/user-interface/resolve-alert-route.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOAlertsUser_Interface;
--- a/wordpress-seo/src/conditionals/woo-seo-inactive-conditional.php
+++ b/wordpress-seo/src/conditionals/woo-seo-inactive-conditional.php
@@ -0,0 +1,18 @@
+<?php
+
+namespace YoastWPSEOConditionals;
+
+/**
+ * Conditional that is only met when Yoast WooCommerce SEO is NOT active.
+ */
+class Woo_SEO_Inactive_Conditional implements Conditional {
+
+ /**
+ * Returns `true` when Yoast WooCommerce SEO is not active.
+ *
+ * @return bool `true` when Yoast WooCommerce SEO is not installed or activated.
+ */
+ public function is_met() {
+ return ! defined( 'WPSEO_WOO_VERSION' );
+ }
+}
--- a/wordpress-seo/src/conditionals/woocommerce-version-conditional.php
+++ b/wordpress-seo/src/conditionals/woocommerce-version-conditional.php
@@ -0,0 +1,27 @@
+<?php
+
+namespace YoastWPSEOConditionals;
+
+/**
+ * Conditional that is only met when WooCommerce is active and version is 10.5 or higher.
+ */
+class WooCommerce_Version_Conditional implements Conditional {
+
+ /**
+ * The minimum WooCommerce version required.
+ */
+ private const REQUIRED_VERSION = '10.5';
+
+ /**
+ * Returns `true` when WooCommerce is installed, activated, and meets the minimum version.
+ *
+ * @return bool `true` when WooCommerce meets the version requirement.
+ */
+ public function is_met() {
+ if ( ! defined( 'WC_VERSION' ) ) {
+ return false;
+ }
+
+ return version_compare( WC_VERSION, self::REQUIRED_VERSION, '>=' );
+ }
+}
--- a/wordpress-seo/src/config/migrations/20260105111111_AddSeoLinksIndex.php
+++ b/wordpress-seo/src/config/migrations/20260105111111_AddSeoLinksIndex.php
@@ -0,0 +1,77 @@
+<?php
+
+namespace YoastWPSEOConfigMigrations;
+
+use YoastWPLibMigrationsMigration;
+use YoastWPLibModel;
+
+/**
+ * AddSeoLinksIndex class.
+ */
+class AddSeoLinksIndex extends Migration {
+
+ /**
+ * The plugin this migration belongs to.
+ *
+ * @var string
+ */
+ public static $plugin = 'free';
+
+ /**
+ * Migration up.
+ *
+ * @return void
+ */
+ public function up() {
+ $table_name = $this->get_table_name();
+
+ $this->add_index(
+ $table_name,
+ 'url',
+ [
+ 'name' => 'url_index',
+ ]
+ );
+
+ $this->add_index(
+ $table_name,
+ 'target_indexable_id',
+ [
+ 'name' => 'target_indexable_id_index',
+ ]
+ );
+ }
+
+ /**
+ * Migration down.
+ *
+ * @return void
+ */
+ public function down() {
+ $table_name = $this->get_table_name();
+
+ $this->remove_index(
+ $table_name,
+ 'url',
+ [
+ 'name' => 'url_index',
+ ]
+ );
+ $this->remove_index(
+ $table_name,
+ 'target_indexable_id',
+ [
+ 'name' => 'target_indexable_id_index',
+ ]
+ );
+ }
+
+ /**
+ * Retrieves the table name to use.
+ *
+ * @return string The table name to use.
+ */
+ protected function get_table_name() {
+ return Model::get_table_name( 'SEO_Links' );
+ }
+}
--- a/wordpress-seo/src/dashboard/application/configuration/dashboard-configuration.php
+++ b/wordpress-seo/src/dashboard/application/configuration/dashboard-configuration.php
@@ -1,6 +1,5 @@
<?php
-
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
namespace YoastWPSEODashboardApplicationConfiguration;
@@ -144,12 +143,12 @@
$site_kit_integration_data = $this->site_kit_integration_data->to_array();
if ( ! empty( $site_kit_integration_data ) ) {
- $configuration ['siteKitConfiguration'] = $site_kit_integration_data;
+ $configuration['siteKitConfiguration'] = $site_kit_integration_data;
}
$browser_cache_configuration = $this->browser_cache_configuration->get_configuration();
if ( ! empty( $browser_cache_configuration ) ) {
- $configuration ['browserCache'] = $browser_cache_configuration;
+ $configuration['browserCache'] = $browser_cache_configuration;
}
return $configuration;
--- a/wordpress-seo/src/dashboard/application/endpoints/endpoints-repository.php
+++ b/wordpress-seo/src/dashboard/application/endpoints/endpoints-repository.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardApplicationEndpoints;
--- a/wordpress-seo/src/dashboard/application/score-results/abstract-score-results-repository.php
+++ b/wordpress-seo/src/dashboard/application/score-results/abstract-score-results-repository.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardApplicationScore_Results;
--- a/wordpress-seo/src/dashboard/application/score-results/current-scores-repository.php
+++ b/wordpress-seo/src/dashboard/application/score-results/current-scores-repository.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardApplicationScore_Results;
--- a/wordpress-seo/src/dashboard/application/score-results/readability-score-results/readability-score-results-repository.php
+++ b/wordpress-seo/src/dashboard/application/score-results/readability-score-results/readability-score-results-repository.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardApplicationScore_ResultsReadability_Score_Results;
--- a/wordpress-seo/src/dashboard/application/score-results/seo-score-results/seo-score-results-repository.php
+++ b/wordpress-seo/src/dashboard/application/score-results/seo-score-results/seo-score-results-repository.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardApplicationScore_ResultsSEO_Score_Results;
--- a/wordpress-seo/src/dashboard/application/search-rankings/search-ranking-compare-repository.php
+++ b/wordpress-seo/src/dashboard/application/search-rankings/search-ranking-compare-repository.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardApplicationSearch_Rankings;
--- a/wordpress-seo/src/dashboard/application/search-rankings/top-page-repository.php
+++ b/wordpress-seo/src/dashboard/application/search-rankings/top-page-repository.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardApplicationSearch_Rankings;
--- a/wordpress-seo/src/dashboard/application/search-rankings/top-query-repository.php
+++ b/wordpress-seo/src/dashboard/application/search-rankings/top-query-repository.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardApplicationSearch_Rankings;
--- a/wordpress-seo/src/dashboard/application/tracking/setup-steps-tracking.php
+++ b/wordpress-seo/src/dashboard/application/tracking/setup-steps-tracking.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardApplicationTracking;
--- a/wordpress-seo/src/dashboard/application/traffic/organic-sessions-compare-repository.php
+++ b/wordpress-seo/src/dashboard/application/traffic/organic-sessions-compare-repository.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardApplicationTraffic;
--- a/wordpress-seo/src/dashboard/application/traffic/organic-sessions-daily-repository.php
+++ b/wordpress-seo/src/dashboard/application/traffic/organic-sessions-daily-repository.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardApplicationTraffic;
--- a/wordpress-seo/src/dashboard/domain/analytics-4/failed-request-exception.php
+++ b/wordpress-seo/src/dashboard/domain/analytics-4/failed-request-exception.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainAnalytics_4;
--- a/wordpress-seo/src/dashboard/domain/analytics-4/invalid-request-exception.php
+++ b/wordpress-seo/src/dashboard/domain/analytics-4/invalid-request-exception.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainAnalytics_4;
--- a/wordpress-seo/src/dashboard/domain/analytics-4/unexpected-response-exception.php
+++ b/wordpress-seo/src/dashboard/domain/analytics-4/unexpected-response-exception.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainAnalytics_4;
--- a/wordpress-seo/src/dashboard/domain/content-types/content-type.php
+++ b/wordpress-seo/src/dashboard/domain/content-types/content-type.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainContent_Types;
--- a/wordpress-seo/src/dashboard/domain/content-types/content-types-list.php
+++ b/wordpress-seo/src/dashboard/domain/content-types/content-types-list.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainContent_Types;
--- a/wordpress-seo/src/dashboard/domain/data-provider/dashboard-repository-interface.php
+++ b/wordpress-seo/src/dashboard/domain/data-provider/dashboard-repository-interface.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainData_Provider;
--- a/wordpress-seo/src/dashboard/domain/data-provider/data-container.php
+++ b/wordpress-seo/src/dashboard/domain/data-provider/data-container.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainData_Provider;
--- a/wordpress-seo/src/dashboard/domain/data-provider/data-interface.php
+++ b/wordpress-seo/src/dashboard/domain/data-provider/data-interface.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainData_Provider;
--- a/wordpress-seo/src/dashboard/domain/data-provider/parameters.php
+++ b/wordpress-seo/src/dashboard/domain/data-provider/parameters.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainData_Provider;
--- a/wordpress-seo/src/dashboard/domain/endpoint/endpoint-interface.php
+++ b/wordpress-seo/src/dashboard/domain/endpoint/endpoint-interface.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainEndpoint;
--- a/wordpress-seo/src/dashboard/domain/endpoint/endpoint-list.php
+++ b/wordpress-seo/src/dashboard/domain/endpoint/endpoint-list.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainEndpoint;
--- a/wordpress-seo/src/dashboard/domain/filter-pairs/filter-pairs-interface.php
+++ b/wordpress-seo/src/dashboard/domain/filter-pairs/filter-pairs-interface.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainFilter_Pairs;
--- a/wordpress-seo/src/dashboard/domain/filter-pairs/product-category-filter-pair.php
+++ b/wordpress-seo/src/dashboard/domain/filter-pairs/product-category-filter-pair.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainFilter_Pairs;
--- a/wordpress-seo/src/dashboard/domain/score-groups/abstract-score-group.php
+++ b/wordpress-seo/src/dashboard/domain/score-groups/abstract-score-group.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainScore_Groups;
--- a/wordpress-seo/src/dashboard/domain/score-groups/readability-score-groups/abstract-readability-score-group.php
+++ b/wordpress-seo/src/dashboard/domain/score-groups/readability-score-groups/abstract-readability-score-group.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardDomainScore_GroupsReadability_Score_Groups;
--- a/wordpress-seo/src/dashboard/domain/score-groups/readability-score-groups/bad-readability-score-group.php
+++ b/wordpress-seo/src/dashboard/domain/score-groups/readability-score-groups/bad-readability-score-group.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardDomainScore_GroupsReadability_Score_Groups;
--- a/wordpress-seo/src/dashboard/domain/score-groups/readability-score-groups/good-readability-score-group.php
+++ b/wordpress-seo/src/dashboard/domain/score-groups/readability-score-groups/good-readability-score-group.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardDomainScore_GroupsReadability_Score_Groups;
--- a/wordpress-seo/src/dashboard/domain/score-groups/readability-score-groups/no-readability-score-group.php
+++ b/wordpress-seo/src/dashboard/domain/score-groups/readability-score-groups/no-readability-score-group.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardDomainScore_GroupsReadability_Score_Groups;
--- a/wordpress-seo/src/dashboard/domain/score-groups/readability-score-groups/ok-readability-score-group.php
+++ b/wordpress-seo/src/dashboard/domain/score-groups/readability-score-groups/ok-readability-score-group.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardDomainScore_GroupsReadability_Score_Groups;
--- a/wordpress-seo/src/dashboard/domain/score-groups/readability-score-groups/readability-score-groups-interface.php
+++ b/wordpress-seo/src/dashboard/domain/score-groups/readability-score-groups/readability-score-groups-interface.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName
namespace YoastWPSEODashboardDomainScore_GroupsReadability_Score_Groups;
--- a/wordpress-seo/src/dashboard/domain/score-groups/score-groups-interface.php
+++ b/wordpress-seo/src/dashboard/domain/score-groups/score-groups-interface.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainScore_Groups;
--- a/wordpress-seo/src/dashboard/domain/score-groups/seo-score-groups/abstract-seo-score-group.php
+++ b/wordpress-seo/src/dashboard/domain/score-groups/seo-score-groups/abstract-seo-score-group.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardDomainScore_GroupsSEO_Score_Groups;
--- a/wordpress-seo/src/dashboard/domain/score-groups/seo-score-groups/bad-seo-score-group.php
+++ b/wordpress-seo/src/dashboard/domain/score-groups/seo-score-groups/bad-seo-score-group.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardDomainScore_GroupsSEO_Score_Groups;
--- a/wordpress-seo/src/dashboard/domain/score-groups/seo-score-groups/good-seo-score-group.php
+++ b/wordpress-seo/src/dashboard/domain/score-groups/seo-score-groups/good-seo-score-group.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardDomainScore_GroupsSEO_Score_Groups;
--- a/wordpress-seo/src/dashboard/domain/score-groups/seo-score-groups/no-seo-score-group.php
+++ b/wordpress-seo/src/dashboard/domain/score-groups/seo-score-groups/no-seo-score-group.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardDomainScore_GroupsSEO_Score_Groups;
--- a/wordpress-seo/src/dashboard/domain/score-groups/seo-score-groups/ok-seo-score-group.php
+++ b/wordpress-seo/src/dashboard/domain/score-groups/seo-score-groups/ok-seo-score-group.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardDomainScore_GroupsSEO_Score_Groups;
--- a/wordpress-seo/src/dashboard/domain/score-groups/seo-score-groups/seo-score-groups-interface.php
+++ b/wordpress-seo/src/dashboard/domain/score-groups/seo-score-groups/seo-score-groups-interface.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName
namespace YoastWPSEODashboardDomainScore_GroupsSEO_Score_Groups;
--- a/wordpress-seo/src/dashboard/domain/score-results/current-score.php
+++ b/wordpress-seo/src/dashboard/domain/score-results/current-score.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainScore_Results;
--- a/wordpress-seo/src/dashboard/domain/score-results/current-scores-list.php
+++ b/wordpress-seo/src/dashboard/domain/score-results/current-scores-list.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainScore_Results;
--- a/wordpress-seo/src/dashboard/domain/score-results/score-result.php
+++ b/wordpress-seo/src/dashboard/domain/score-results/score-result.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainScore_Results;
--- a/wordpress-seo/src/dashboard/domain/score-results/score-results-not-found-exception.php
+++ b/wordpress-seo/src/dashboard/domain/score-results/score-results-not-found-exception.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainScore_Results;
--- a/wordpress-seo/src/dashboard/domain/search-console/failed-request-exception.php
+++ b/wordpress-seo/src/dashboard/domain/search-console/failed-request-exception.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainSearch_Console;
--- a/wordpress-seo/src/dashboard/domain/search-console/unexpected-response-exception.php
+++ b/wordpress-seo/src/dashboard/domain/search-console/unexpected-response-exception.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainSearch_Console;
--- a/wordpress-seo/src/dashboard/domain/search-rankings/comparison-search-ranking-data.php
+++ b/wordpress-seo/src/dashboard/domain/search-rankings/comparison-search-ranking-data.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainSearch_Rankings;
--- a/wordpress-seo/src/dashboard/domain/search-rankings/search-ranking-data.php
+++ b/wordpress-seo/src/dashboard/domain/search-rankings/search-ranking-data.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainSearch_Rankings;
--- a/wordpress-seo/src/dashboard/domain/search-rankings/top-page-data.php
+++ b/wordpress-seo/src/dashboard/domain/search-rankings/top-page-data.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainSearch_Rankings;
--- a/wordpress-seo/src/dashboard/domain/taxonomies/taxonomy.php
+++ b/wordpress-seo/src/dashboard/domain/taxonomies/taxonomy.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainTaxonomies;
--- a/wordpress-seo/src/dashboard/domain/time-based-seo-metrics/data-source-not-available-exception.php
+++ b/wordpress-seo/src/dashboard/domain/time-based-seo-metrics/data-source-not-available-exception.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainTime_Based_Seo_Metrics;
--- a/wordpress-seo/src/dashboard/domain/time-based-seo-metrics/repository-not-found-exception.php
+++ b/wordpress-seo/src/dashboard/domain/time-based-seo-metrics/repository-not-found-exception.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainTime_Based_SEO_Metrics;
--- a/wordpress-seo/src/dashboard/domain/traffic/comparison-traffic-data.php
+++ b/wordpress-seo/src/dashboard/domain/traffic/comparison-traffic-data.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainTraffic;
--- a/wordpress-seo/src/dashboard/domain/traffic/daily-traffic-data.php
+++ b/wordpress-seo/src/dashboard/domain/traffic/daily-traffic-data.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainTraffic;
--- a/wordpress-seo/src/dashboard/domain/traffic/traffic-data.php
+++ b/wordpress-seo/src/dashboard/domain/traffic/traffic-data.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardDomainTraffic;
--- a/wordpress-seo/src/dashboard/infrastructure/analytics-4/analytics-4-parameters.php
+++ b/wordpress-seo/src/dashboard/infrastructure/analytics-4/analytics-4-parameters.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardInfrastructureAnalytics_4;
--- a/wordpress-seo/src/dashboard/infrastructure/analytics-4/site-kit-analytics-4-adapter.php
+++ b/wordpress-seo/src/dashboard/infrastructure/analytics-4/site-kit-analytics-4-adapter.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardInfrastructureAnalytics_4;
--- a/wordpress-seo/src/dashboard/infrastructure/analytics-4/site-kit-analytics-4-api-call.php
+++ b/wordpress-seo/src/dashboard/infrastructure/analytics-4/site-kit-analytics-4-api-call.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardInfrastructureAnalytics_4;
--- a/wordpress-seo/src/dashboard/infrastructure/browser-cache/browser-cache-configuration.php
+++ b/wordpress-seo/src/dashboard/infrastructure/browser-cache/browser-cache-configuration.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
namespace YoastWPSEODashboardInfrastructureBrowser_Cache;
--- a/wordpress-seo/src/dashboard/infrastructure/configuration/permanently-dismissed-site-kit-configuration-repository-interface.php
+++ b/wordpress-seo/src/dashboard/infrastructure/configuration/permanently-dismissed-site-kit-configuration-repository-interface.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardInfrastructureConfiguration;
--- a/wordpress-seo/src/dashboard/infrastructure/configuration/permanently-dismissed-site-kit-configuration-repository.php
+++ b/wordpress-seo/src/dashboard/infrastructure/configuration/permanently-dismissed-site-kit-configuration-repository.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardInfrastructureConfiguration;
--- a/wordpress-seo/src/dashboard/infrastructure/configuration/site-kit-consent-repository-interface.php
+++ b/wordpress-seo/src/dashboard/infrastructure/configuration/site-kit-consent-repository-interface.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardInfrastructureConfiguration;
--- a/wordpress-seo/src/dashboard/infrastructure/configuration/site-kit-consent-repository.php
+++ b/wordpress-seo/src/dashboard/infrastructure/configuration/site-kit-consent-repository.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardInfrastructureConfiguration;
--- a/wordpress-seo/src/dashboard/infrastructure/connection/site-kit-is-connected-call.php
+++ b/wordpress-seo/src/dashboard/infrastructure/connection/site-kit-is-connected-call.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardInfrastructureConnection;
--- a/wordpress-seo/src/dashboard/infrastructure/endpoints/readability-scores-endpoint.php
+++ b/wordpress-seo/src/dashboard/infrastructure/endpoints/readability-scores-endpoint.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardInfrastructureEndpoints;
--- a/wordpress-seo/src/dashboard/infrastructure/endpoints/seo-scores-endpoint.php
+++ b/wordpress-seo/src/dashboard/infrastructure/endpoints/seo-scores-endpoint.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardInfrastructureEndpoints;
--- a/wordpress-seo/src/dashboard/infrastructure/endpoints/setup-steps-tracking-endpoint.php
+++ b/wordpress-seo/src/dashboard/infrastructure/endpoints/setup-steps-tracking-endpoint.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardInfrastructureEndpoints;
--- a/wordpress-seo/src/dashboard/infrastructure/endpoints/site-kit-configuration-dismissal-endpoint.php
+++ b/wordpress-seo/src/dashboard/infrastructure/endpoints/site-kit-configuration-dismissal-endpoint.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardInfrastructureEndpoints;
--- a/wordpress-seo/src/dashboard/infrastructure/endpoints/site-kit-consent-management-endpoint.php
+++ b/wordpress-seo/src/dashboard/infrastructure/endpoints/site-kit-consent-management-endpoint.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardInfrastructureEndpoints;
--- a/wordpress-seo/src/dashboard/infrastructure/endpoints/time-based-seo-metrics-endpoint.php
+++ b/wordpress-seo/src/dashboard/infrastructure/endpoints/time-based-seo-metrics-endpoint.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardInfrastructureEndpoints;
--- a/wordpress-seo/src/dashboard/infrastructure/indexables/top-page-indexable-collector.php
+++ b/wordpress-seo/src/dashboard/infrastructure/indexables/top-page-indexable-collector.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardInfrastructureIndexables;
--- a/wordpress-seo/src/dashboard/infrastructure/integrations/site-kit.php
+++ b/wordpress-seo/src/dashboard/infrastructure/integrations/site-kit.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardInfrastructureIntegrations;
--- a/wordpress-seo/src/dashboard/infrastructure/nonces/nonce-repository.php
+++ b/wordpress-seo/src/dashboard/infrastructure/nonces/nonce-repository.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardInfrastructureNonces;
--- a/wordpress-seo/src/dashboard/infrastructure/score-groups/score-group-link-collector.php
+++ b/wordpress-seo/src/dashboard/infrastructure/score-groups/score-group-link-collector.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardInfrastructureScore_Groups;
--- a/wordpress-seo/src/dashboard/infrastructure/score-results/readability-score-results/cached-readability-score-results-collector.php
+++ b/wordpress-seo/src/dashboard/infrastructure/score-results/readability-score-results/cached-readability-score-results-collector.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardInfrastructureScore_ResultsReadability_Score_Results;
--- a/wordpress-seo/src/dashboard/infrastructure/score-results/readability-score-results/readability-score-results-collector.php
+++ b/wordpress-seo/src/dashboard/infrastructure/score-results/readability-score-results/readability-score-results-collector.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardInfrastructureScore_ResultsReadability_Score_Results;
--- a/wordpress-seo/src/dashboard/infrastructure/score-results/score-results-collector-interface.php
+++ b/wordpress-seo/src/dashboard/infrastructure/score-results/score-results-collector-interface.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardInfrastructureScore_Results;
--- a/wordpress-seo/src/dashboard/infrastructure/score-results/seo-score-results/cached-seo-score-results-collector.php
+++ b/wordpress-seo/src/dashboard/infrastructure/score-results/seo-score-results/cached-seo-score-results-collector.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardInfrastructureScore_ResultsSEO_Score_Results;
--- a/wordpress-seo/src/dashboard/infrastructure/score-results/seo-score-results/seo-score-results-collector.php
+++ b/wordpress-seo/src/dashboard/infrastructure/score-results/seo-score-results/seo-score-results-collector.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardInfrastructureScore_ResultsSEO_Score_Results;
--- a/wordpress-seo/src/dashboard/infrastructure/search-console/search-console-parameters.php
+++ b/wordpress-seo/src/dashboard/infrastructure/search-console/search-console-parameters.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardInfrastructureSearch_Console;
--- a/wordpress-seo/src/dashboard/infrastructure/search-console/site-kit-search-console-adapter.php
+++ b/wordpress-seo/src/dashboard/infrastructure/search-console/site-kit-search-console-adapter.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardInfrastructureSearch_Console;
--- a/wordpress-seo/src/dashboard/infrastructure/search-console/site-kit-search-console-api-call.php
+++ b/wordpress-seo/src/dashboard/infrastructure/search-console/site-kit-search-console-api-call.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
namespace YoastWPSEODashboardInfrastructureSearch_Console;
--- a/wordpress-seo/src/dashboard/infrastructure/tracking/setup-steps-tracking-repository-interface.php
+++ b/wordpress-seo/src/dashboard/infrastructure/tracking/setup-steps-tracking-repository-interface.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardInfrastructureTracking;
--- a/wordpress-seo/src/dashboard/infrastructure/tracking/setup-steps-tracking-repository.php
+++ b/wordpress-seo/src/dashboard/infrastructure/tracking/setup-steps-tracking-repository.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardInfrastructureTracking;
--- a/wordpress-seo/src/dashboard/user-interface/configuration/site-kit-capabilities-integration.php
+++ b/wordpress-seo/src/dashboard/user-interface/configuration/site-kit-capabilities-integration.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardUser_InterfaceConfiguration;
--- a/wordpress-seo/src/dashboard/user-interface/configuration/site-kit-configuration-dismissal-route.php
+++ b/wordpress-seo/src/dashboard/user-interface/configuration/site-kit-configuration-dismissal-route.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardUser_InterfaceConfiguration;
@@ -85,7 +86,6 @@
'type' => 'bool',
'sanitize_callback' => 'rest_sanitize_boolean',
],
-
],
],
]
--- a/wordpress-seo/src/dashboard/user-interface/configuration/site-kit-consent-management-route.php
+++ b/wordpress-seo/src/dashboard/user-interface/configuration/site-kit-consent-management-route.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardUser_InterfaceConfiguration;
@@ -93,7 +94,6 @@
'type' => 'bool',
'sanitize_callback' => 'rest_sanitize_boolean',
],
-
],
],
]
--- a/wordpress-seo/src/dashboard/user-interface/scores/abstract-scores-route.php
+++ b/wordpress-seo/src/dashboard/user-interface/scores/abstract-scores-route.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardUser_InterfaceScores;
--- a/wordpress-seo/src/dashboard/user-interface/scores/readability-scores-route.php
+++ b/wordpress-seo/src/dashboard/user-interface/scores/readability-scores-route.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardUser_InterfaceScores;
--- a/wordpress-seo/src/dashboard/user-interface/scores/seo-scores-route.php
+++ b/wordpress-seo/src/dashboard/user-interface/scores/seo-scores-route.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardUser_InterfaceScores;
--- a/wordpress-seo/src/dashboard/user-interface/setup/setup-flow-interceptor.php
+++ b/wordpress-seo/src/dashboard/user-interface/setup/setup-flow-interceptor.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardUser_InterfaceSetup;
@@ -80,7 +81,6 @@
if ( get_transient( Setup_Url_Interceptor::SITE_KIT_SETUP_TRANSIENT ) === '1' && $this->is_site_kit_setup_completed_page() ) {
delete_transient( Setup_Url_Interceptor::SITE_KIT_SETUP_TRANSIENT );
$this->redirect_helper->do_safe_redirect( self_admin_url( 'admin.php?page=wpseo_dashboard&redirected_from_site_kit' ), 302, 'Yoast SEO' );
-
}
}
--- a/wordpress-seo/src/dashboard/user-interface/setup/setup-url-interceptor.php
+++ b/wordpress-seo/src/dashboard/user-interface/setup/setup-url-interceptor.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardUser_InterfaceSetup;
@@ -121,7 +122,6 @@
// phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Reason: Only allowed pre verified links can end up here.
$redirect_url = wp_unslash( $_GET['redirect_setup_url'] );
$this->redirect_helper->do_safe_redirect( $redirect_url, 302, 'Yoast SEO' );
-
}
else {
$this->redirect_helper->do_safe_redirect( self_admin_url( 'admin.php?page=wpseo_dashboard' ), 302, 'Yoast SEO' );
--- a/wordpress-seo/src/dashboard/user-interface/time-based-seo-metrics/time-based-seo-metrics-route.php
+++ b/wordpress-seo/src/dashboard/user-interface/time-based-seo-metrics/time-based-seo-metrics-route.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardUser_InterfaceTime_Based_SEO_Metrics;
--- a/wordpress-seo/src/dashboard/user-interface/tracking/setup-steps-tracking-route.php
+++ b/wordpress-seo/src/dashboard/user-interface/tracking/setup-steps-tracking-route.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEODashboardUser_InterfaceTracking;
--- a/wordpress-seo/src/editors/application/seo/post-seo-information-repository.php
+++ b/wordpress-seo/src/editors/application/seo/post-seo-information-repository.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
namespace YoastWPSEOEditorsApplicationSeo;
--- a/wordpress-seo/src/editors/application/seo/term-seo-information-repository.php
+++ b/wordpress-seo/src/editors/application/seo/term-seo-information-repository.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
namespace YoastWPSEOEditorsApplicationSeo;
--- a/wordpress-seo/src/editors/domain/analysis-features/analysis-feature-interface.php
+++ b/wordpress-seo/src/editors/domain/analysis-features/analysis-feature-interface.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOEditorsDomainAnalysis_Features;
--- a/wordpress-seo/src/editors/domain/analysis-features/analysis-feature.php
+++ b/wordpress-seo/src/editors/domain/analysis-features/analysis-feature.php
@@ -1,4 +1,5 @@
<?php
+
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace YoastWPSEOEditorsDomainAnalysis_Features;
--- a/wordpress-seo/src/editors/domain/analysis-featu