Make WordPress Core

Changeset 54754


Ignore:
Timestamp:
11/05/2022 10:01:47 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Correct alignment in various files.

This fixes Equals sign not aligned with surrounding statements WPCS warnings, so that the output of composer format is clean.

Follow-up to [54445], [54476], [54494], [54522], [54652], [54687].

See #56791.

Location:
trunk/src/wp-includes
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-template-utils.php

    r54751 r54754  
    557557    );
    558558
    559     $args  = array(
     559    $args = array(
    560560        'name' => $slug,
    561561    );
    562     $args  = wp_parse_args( $args, $default_args );
     562    $args = wp_parse_args( $args, $default_args );
     563
    563564    $posts_query = new WP_Query( $args );
    564565
     
    592593        'title' => $post_title,
    593594    );
    594     $args                        = wp_parse_args( $args, $default_args );
     595    $args = wp_parse_args( $args, $default_args );
     596
    595597    $posts_with_same_title_query = new WP_Query( $args );
    596598
     
    631633    $term_query = new WP_Term_Query();
    632634
    633     $args  = array(
     635    $args = array(
    634636        'number' => 1,
    635637        'slug'   => $slug,
    636638    );
    637     $args        = wp_parse_args( $args, $default_args );
     639    $args = wp_parse_args( $args, $default_args );
     640
    638641    $terms_query = $term_query->query( $args );
    639642
     
    669672        'name'   => $term_title,
    670673    );
    671     $args                        = wp_parse_args( $args, $default_args );
     674    $args = wp_parse_args( $args, $default_args );
     675
    672676    $terms_with_same_title_query = $term_query->query( $args );
    673677
  • trunk/src/wp-includes/class-wp-oembed.php

    r54652 r54754  
    8181            '#https?://(www\.|embed\.)?ted\.com/talks/.*#i' => array( 'https://www.ted.com/services/v1/oembed.{format}', true ),
    8282            '#https?://(www\.)?(animoto|video214)\.com/play/.*#i' => array( 'https://animoto.com/oembeds/create', true ),
    83             '#https?://(.+)\.tumblr\.com/.*#i'        => array( 'https://www.tumblr.com/oembed/1.0', true ),
     83            '#https?://(.+)\.tumblr\.com/.*#i'             => array( 'https://www.tumblr.com/oembed/1.0', true ),
    8484            '#https?://(www\.)?kickstarter\.com/projects/.*#i' => array( 'https://www.kickstarter.com/services/oembed', true ),
    8585            '#https?://kck\.st/.*#i'                       => array( 'https://www.kickstarter.com/services/oembed', true ),
  • trunk/src/wp-includes/functions.php

    r54712 r54754  
    35683568            get_bloginfo( 'name' )
    35693569        );
    3570         $html        = $title;
    3571         $html       .= '</p><p>';
     3570
    35723571        $redirect_to = isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';
    3573         $html       .= sprintf(
     3572
     3573        $html  = $title;
     3574        $html .= '</p><p>';
     3575        $html .= sprintf(
    35743576            /* translators: %s: Logout URL. */
    35753577            __( 'Do you really want to <a href="%s">log out</a>?' ),
     
    35783580    } else {
    35793581        $html = __( 'The link you followed has expired.' );
     3582
    35803583        if ( wp_get_referer() ) {
    35813584            $wp_http_referer = remove_query_arg( 'updated', wp_get_referer() );
    35823585            $wp_http_referer = wp_validate_redirect( esc_url_raw( $wp_http_referer ) );
     3586
    35833587            $html .= '</p><p>';
    35843588            $html .= sprintf(
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

    r54476 r54754  
    28912891
    28922892        $query_params['slug'] = array(
    2893             'description'       => __( 'Limit result set to posts with one or more specific slugs.' ),
    2894             'type'              => 'array',
    2895             'items'             => array(
     2893            'description' => __( 'Limit result set to posts with one or more specific slugs.' ),
     2894            'type'        => 'array',
     2895            'items'       => array(
    28962896                'type' => 'string',
    28972897            ),
  • trunk/src/wp-includes/script-loader.php

    r54687 r54754  
    36873687        return $editor_settings;
    36883688    }
    3689     $suffix = wp_scripts_get_suffix();
     3689
     3690    $suffix               = wp_scripts_get_suffix();
    36903691    $classic_theme_styles = ABSPATH . WPINC . "/css/classic-themes$suffix.css";
    36913692
Note: See TracChangeset for help on using the changeset viewer.