Make WordPress Core

Changeset 56598


Ignore:
Timestamp:
09/17/2023 02:08:25 AM (15 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Fix a few newly introduced WPCS issues.

Follow-up to [56515], [56557], [56560].

Props jrf.
See #59161, #58831.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/menu.php

    r56549 r56598  
    6464// $menu[5] = Posts.
    6565
    66 $menu[10]                     = array( __( 'Media' ), 'upload_files', 'upload.php', '', 'menu-top menu-icon-media', 'menu-media', 'dashicons-admin-media' );
    67     $submenu['upload.php'][5] = array( __( 'Library' ), 'upload_files', 'upload.php' );
     66$menu[10]                      = array( __( 'Media' ), 'upload_files', 'upload.php', '', 'menu-top menu-icon-media', 'menu-media', 'dashicons-admin-media' );
     67    $submenu['upload.php'][5]  = array( __( 'Library' ), 'upload_files', 'upload.php' );
    6868    $submenu['upload.php'][10] = array( __( 'Add New Media File' ), 'upload_files', 'media-new.php' );
    6969    $i                         = 15;
     
    7777    unset( $tax, $i );
    7878
    79 $menu[15]                           = array( __( 'Links' ), 'manage_links', 'link-manager.php', '', 'menu-top menu-icon-links', 'menu-links', 'dashicons-admin-links' );
    80     $submenu['link-manager.php'][5] = array( _x( 'All Links', 'admin menu' ), 'manage_links', 'link-manager.php' );
     79$menu[15]                            = array( __( 'Links' ), 'manage_links', 'link-manager.php', '', 'menu-top menu-icon-links', 'menu-links', 'dashicons-admin-links' );
     80    $submenu['link-manager.php'][5]  = array( _x( 'All Links', 'admin menu' ), 'manage_links', 'link-manager.php' );
    8181    $submenu['link-manager.php'][10] = array( __( 'Add New Link' ), 'manage_links', 'link-add.php' );
    8282    $submenu['link-manager.php'][15] = array( __( 'Link Categories' ), 'manage_categories', 'edit-tags.php?taxonomy=link_category' );
  • trunk/src/wp-includes/blocks.php

    r56592 r56598  
    873873    foreach ( $blocks as $block ) {
    874874        $result .= serialize_block( $block, $callback );
    875     };
     875    }
    876876    return $result;
    877877}
  • trunk/tests/phpunit/tests/formatting/wpTrimExcerpt.php

    r56561 r56598  
    182182        add_filter(
    183183            'the_content',
    184             static function( $content ) use ( &$has_filter ) {
     184            static function ( $content ) use ( &$has_filter ) {
    185185                $has_filter = has_filter( 'the_content', 'do_blocks' );
    186186                return $content;
Note: See TracChangeset for help on using the changeset viewer.