Skip to content

Commit

Permalink
Coding Standards: Fix a few newly introduced WPCS issues.
Browse files Browse the repository at this point in the history
Follow-up to [56515], [56557], [56560].

Props jrf.
See #59161, #58831.

git-svn-id: https://develop.svn.wordpress.org/trunk@56598 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Sep 17, 2023
1 parent 5cfb817 commit fe097d1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/wp-admin/menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@

// $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 ) {
Expand All @@ -76,8 +76,8 @@
}
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' );

Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ function serialize_blocks( $blocks, $callback = null ) {
$result = '';
foreach ( $blocks as $block ) {
$result .= serialize_block( $block, $callback );
};
}
return $result;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/formatting/wpTrimExcerpt.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public function test_wp_trim_excerpt_unhooks_do_blocks() {
$has_filter = true;
add_filter(
'the_content',
static function( $content ) use ( &$has_filter ) {
static function ( $content ) use ( &$has_filter ) {
$has_filter = has_filter( 'the_content', 'do_blocks' );
return $content;
}
Expand Down

0 comments on commit fe097d1

Please sign in to comment.