Skip to content

Commit

Permalink
Renames.
Browse files Browse the repository at this point in the history
  • Loading branch information
thijsoo committed Sep 11, 2024
1 parent e08e0df commit 6c99aaf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions admin/class-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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' ) );
Expand Down
2 changes: 1 addition & 1 deletion css/src/new-dashboard.css
Original file line number Diff line number Diff line change
@@ -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. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6c99aaf

Please sign in to comment.