Make WordPress Core

Changeset 56273


Ignore:
Timestamp:
07/20/2023 12:04:33 AM (9 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Correct equals sign alignment in various files.

This resolves a few WPCS warnings:

Equals sign not aligned with surrounding statements

so that the output of composer format is clean.

Follow-up to [55971], [56033], [56056], [56143], [56214].

Props jrf.
See #58831.

Location:
trunk/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-debug-data.php

    r56174 r56273  
    847847        // Server time.
    848848        $date = new DateTime( 'now', new DateTimeZone( 'UTC' ) );
    849         $info['wp-server']['fields']['current'] = array(
     849
     850        $info['wp-server']['fields']['current']     = array(
    850851            'label' => __( 'Current time' ),
    851852            'value' => $date->format( DateTime::ATOM ),
    852853        );
    853         $info['wp-server']['fields']['utc-time'] = array(
     854        $info['wp-server']['fields']['utc-time']    = array(
    854855            'label' => __( 'Current UTC time' ),
    855856            'value' => $date->format( DateTime::RFC850 ),
  • trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php

    r55988 r56273  
    392392
    393393        if ( is_subdomain_install() ) {
    394             $abbr = __( 'Domain' );
     394            $blogname_abbr        = __( 'Domain' );
    395395            $blogname_orderby_text = __( 'Table ordered by Site Domain Name.' );
    396396        } else {
    397             $abbr = __( 'Path' );
     397            $blogname_abbr        = __( 'Path' );
    398398            $blogname_orderby_text = __( 'Table ordered by Site Path.' );
    399399        }
    400400
    401401        return array(
    402             'blogname'    => array( 'blogname', false, $abbr, $blogname_orderby_text ),
     402            'blogname'    => array( 'blogname', false, $blogname_abbr, $blogname_orderby_text ),
    403403            'lastupdated' => array( 'lastupdated', true, __( 'Last Updated' ), __( 'Table ordered by Last Updated.' ) ),
    404404            'registered'  => array( 'blog_id', true, _x( 'Registered', 'site' ), __( 'Table ordered by Site Registered Date.' ), 'desc' ),
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r55971 r56273  
    765765
    766766        if ( 'page' === $post_type ) {
    767             $title_orderby_text = isset( $_GET['orderby'] ) ? __( 'Table ordered by Title.' ) : __( 'Table ordered by Hierarchical Menu Order and Title.' );
     767            if ( isset( $_GET['orderby'] ) ) {
     768                $title_orderby_text = __( 'Table ordered by Title.' );
     769            } else {
     770                $title_orderby_text = __( 'Table ordered by Hierarchical Menu Order and Title.' );
     771            }
     772
    768773            $sortables = array(
    769774                'title'    => array( 'title', false, __( 'Title' ), $title_orderby_text, 'asc' ),
  • trunk/src/wp-includes/class-wp-scripts.php

    r56246 r56273  
    965965        }
    966966
    967         $is_alias = (bool) ! $this->registered[ $handle ]->src;
     967        $is_alias          = (bool) ! $this->registered[ $handle ]->src;
    968968        $intended_strategy = $this->get_data( $handle, 'strategy' );
    969969
  • trunk/src/wp-includes/media.php

    r56245 r56273  
    56215621        return $loading_attributes;
    56225622    };
     5623
    56235624    // Closure to increase media count for images with certain minimum threshold, mostly used for header images.
    56245625    $maybe_increase_content_media_count = static function() use ( $attr ) {
  • trunk/src/wp-includes/shortcodes.php

    r56214 r56273  
    223223
    224224    // Ensure this context is only added once if shortcodes are nested.
    225     $has_filter = has_filter( 'wp_get_attachment_image_context', '_filter_do_shortcode_context' );
     225    $has_filter   = has_filter( 'wp_get_attachment_image_context', '_filter_do_shortcode_context' );
    226226    $filter_added = false;
    227227
Note: See TracChangeset for help on using the changeset viewer.