From 6c99aaf4378d022da46e44a68bf58e71316055a7 Mon Sep 17 00:00:00 2001 From: Thijs van der heijden Date: Wed, 11 Sep 2024 09:12:31 +0200 Subject: [PATCH] Renames. --- admin/class-config.php | 4 ++-- css/src/new-dashboard.css | 2 +- .../admin/first-time-configuration-integration.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/class-config.php b/admin/class-config.php index 1a476084ddd..ee5e4c733ca 100644 --- a/admin/class-config.php +++ b/admin/class-config.php @@ -6,7 +6,7 @@ */ use Yoast\WP\SEO\Actions\Alert_Dismissal_Action; -use Yoast\WP\SEO\Dashboard\User_Interface\General_Page_Integration; +use Yoast\WP\SEO\Dashboard\User_Interface\New_Dashboard_Page_Integration; use Yoast\WP\SEO\Integrations\Academy_Integration; use Yoast\WP\SEO\Integrations\Settings_Integration; use Yoast\WP\SEO\Integrations\Support_Integration; @@ -105,7 +105,7 @@ public function config_page_scripts() { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form information. $page = isset( $_GET['page'] ) && is_string( $_GET['page'] ) ? sanitize_text_field( wp_unslash( $_GET['page'] ) ) : ''; - if ( in_array( $page, [ WPSEO_Admin::PAGE_IDENTIFIER, General_Page_Integration::PAGE, 'wpseo_workouts' ], true ) ) { + if ( in_array( $page, [ WPSEO_Admin::PAGE_IDENTIFIER, New_Dashboard_Page_Integration::PAGE, 'wpseo_workouts' ], true ) ) { wp_enqueue_media(); $script_data['userEditUrl'] = add_query_arg( 'user_id', '{user_id}', admin_url( 'user-edit.php' ) ); diff --git a/css/src/new-dashboard.css b/css/src/new-dashboard.css index e56fb835b3d..68e7a5cbf77 100644 --- a/css/src/new-dashboard.css +++ b/css/src/new-dashboard.css @@ -1,4 +1,4 @@ -body.seo_page_wpseo_page_dashboard_new { +body.seo_page_wpseo_page_new_dashboard { @apply yst-bg-slate-100; /* Move WP footer behind our content. */ diff --git a/src/integrations/admin/first-time-configuration-integration.php b/src/integrations/admin/first-time-configuration-integration.php index 43118a16a8b..516993b151c 100644 --- a/src/integrations/admin/first-time-configuration-integration.php +++ b/src/integrations/admin/first-time-configuration-integration.php @@ -137,7 +137,7 @@ public function add_first_time_configuration_tab( $dashboard_tabs ) { */ public function enqueue_assets() { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Date is not processed or saved. - if ( ! isset( $_GET['page'] ) || ( $_GET['page'] !== 'wpseo_dashboard' && $_GET['page'] !== 'wpseo_page_dashboard_new' ) || \is_network_admin() ) { + if ( ! isset( $_GET['page'] ) || ( $_GET['page'] !== 'wpseo_dashboard' && $_GET['page'] !== 'wpseo_page_new_dashboard' ) || \is_network_admin() ) { return; }