Make WordPress Core

Changeset 54753 for branches/6.1


Ignore:
Timestamp:
11/05/2022 09:59:35 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Revert [54752] from the 6.1 branch.

This was supposed to be committed to trunk.

See #56791.

Location:
branches/6.1/src/wp-includes
Files:
5 edited

Legend:

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

    r54752 r54753  
    557557        );
    558558
    559         $args = array(
     559        $args  = array(
    560560                'name' => $slug,
    561561        );
    562         $args = wp_parse_args( $args, $default_args );
    563 
     562        $args  = wp_parse_args( $args, $default_args );
    564563        $posts_query = new WP_Query( $args );
    565564
     
    593592                'title' => $post_title,
    594593        );
    595         $args = wp_parse_args( $args, $default_args );
    596 
     594        $args                        = wp_parse_args( $args, $default_args );
    597595        $posts_with_same_title_query = new WP_Query( $args );
    598596
     
    633631        $term_query = new WP_Term_Query();
    634632
    635         $args = array(
     633        $args  = array(
    636634                'number' => 1,
    637635                'slug'   => $slug,
    638636        );
    639         $args = wp_parse_args( $args, $default_args );
    640 
     637        $args        = wp_parse_args( $args, $default_args );
    641638        $terms_query = $term_query->query( $args );
    642639
     
    672669                'name'   => $term_title,
    673670        );
    674         $args = wp_parse_args( $args, $default_args );
    675 
     671        $args                        = wp_parse_args( $args, $default_args );
    676672        $terms_with_same_title_query = $term_query->query( $args );
    677673
  • branches/6.1/src/wp-includes/class-wp-oembed.php

    r54752 r54753  
    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 ),
  • branches/6.1/src/wp-includes/functions.php

    r54752 r54753  
    35683568                        get_bloginfo( 'name' )
    35693569                );
    3570 
     3570                $html        = $title;
     3571                $html       .= '</p><p>';
    35713572                $redirect_to = isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';
    3572 
    3573                 $html  = $title;
    3574                 $html .= '</p><p>';
    3575                 $html .= sprintf(
     3573                $html       .= sprintf(
    35763574                        /* translators: %s: Logout URL. */
    35773575                        __( 'Do you really want to <a href="%s">log out</a>?' ),
     
    35803578        } else {
    35813579                $html = __( 'The link you followed has expired.' );
    3582 
    35833580                if ( wp_get_referer() ) {
    35843581                        $wp_http_referer = remove_query_arg( 'updated', wp_get_referer() );
    35853582                        $wp_http_referer = wp_validate_redirect( esc_url_raw( $wp_http_referer ) );
    3586 
    35873583                        $html .= '</p><p>';
    35883584                        $html .= sprintf(
  • branches/6.1/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

    r54752 r54753  
    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                        ),
  • branches/6.1/src/wp-includes/script-loader.php

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