From 3546f04e160fbd31b46ba70b583d0a1d9fe1d80b Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 17 Sep 2023 02:10:17 +0000 Subject: [PATCH] Coding Standards: Fix a few newly introduced WPCS issues. Follow-up to [56515], [56557], [56560]. Props jrf. See #59161, #58831. Built from https://develop.svn.wordpress.org/trunk@56598 git-svn-id: http://core.svn.wordpress.org/trunk@56110 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/menu.php | 8 ++++---- wp-includes/blocks.php | 2 +- wp-includes/version.php | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wp-admin/menu.php b/wp-admin/menu.php index 6a90772155..567af4ae40 100644 --- a/wp-admin/menu.php +++ b/wp-admin/menu.php @@ -63,8 +63,8 @@ $menu[4] = array( '', 'read', 'separator1', '', 'wp-menu-separator' ); // $menu[5] = Posts. -$menu[10] = array( __( 'Media' ), 'upload_files', 'upload.php', '', 'menu-top menu-icon-media', 'menu-media', 'dashicons-admin-media' ); - $submenu['upload.php'][5] = array( __( 'Library' ), 'upload_files', 'upload.php' ); +$menu[10] = array( __( 'Media' ), 'upload_files', 'upload.php', '', 'menu-top menu-icon-media', 'menu-media', 'dashicons-admin-media' ); + $submenu['upload.php'][5] = array( __( 'Library' ), 'upload_files', 'upload.php' ); $submenu['upload.php'][10] = array( __( 'Add New Media File' ), 'upload_files', 'media-new.php' ); $i = 15; foreach ( get_taxonomies_for_attachments( 'objects' ) as $tax ) { @@ -76,8 +76,8 @@ foreach ( get_taxonomies_for_attachments( 'objects' ) as $tax ) { } unset( $tax, $i ); -$menu[15] = array( __( 'Links' ), 'manage_links', 'link-manager.php', '', 'menu-top menu-icon-links', 'menu-links', 'dashicons-admin-links' ); - $submenu['link-manager.php'][5] = array( _x( 'All Links', 'admin menu' ), 'manage_links', 'link-manager.php' ); +$menu[15] = array( __( 'Links' ), 'manage_links', 'link-manager.php', '', 'menu-top menu-icon-links', 'menu-links', 'dashicons-admin-links' ); + $submenu['link-manager.php'][5] = array( _x( 'All Links', 'admin menu' ), 'manage_links', 'link-manager.php' ); $submenu['link-manager.php'][10] = array( __( 'Add New Link' ), 'manage_links', 'link-add.php' ); $submenu['link-manager.php'][15] = array( __( 'Link Categories' ), 'manage_categories', 'edit-tags.php?taxonomy=link_category' ); diff --git a/wp-includes/blocks.php b/wp-includes/blocks.php index edd76e1b0e..07bbd5ab01 100644 --- a/wp-includes/blocks.php +++ b/wp-includes/blocks.php @@ -872,7 +872,7 @@ function serialize_blocks( $blocks, $callback = null ) { $result = ''; foreach ( $blocks as $block ) { $result .= serialize_block( $block, $callback ); - }; + } return $result; } diff --git a/wp-includes/version.php b/wp-includes/version.php index a48737a57e..44c3dff68b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.4-alpha-56597'; +$wp_version = '6.4-alpha-56598'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.