Make WordPress Core

Changeset 57053


Ignore:
Timestamp:
11/02/2023 12:02:36 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 [56796], [56803], [56838], [56839], [56985].

See #59650.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks.php

    r57038 r57053  
    19711971 */
    19721972function _wp_filter_post_meta_footnotes( $footnotes ) {
    1973     $footnotes_decoded   = json_decode( $footnotes, true );
     1973    $footnotes_decoded = json_decode( $footnotes, true );
    19741974    if ( ! is_array( $footnotes_decoded ) ) {
    19751975        return '';
  • trunk/src/wp-includes/class-wp-block-list.php

    r56803 r57053  
    9494
    9595        if ( isset( $block ) && is_array( $block ) ) {
    96             $block                  = new WP_Block( $block, $this->available_context, $this->registry );
     96            $block = new WP_Block( $block, $this->available_context, $this->registry );
     97
    9798            $this->blocks[ $offset ] = $block;
    9899        }
  • trunk/src/wp-includes/media.php

    r57042 r57053  
    26092609    } elseif ( ! empty( $atts['exclude'] ) ) {
    26102610        $post_parent_id = $id;
    2611         $attachments = get_children(
     2611        $attachments    = get_children(
    26122612            array(
    26132613                'post_parent'    => $id,
     
    26222622    } else {
    26232623        $post_parent_id = $id;
    2624         $attachments = get_children(
     2624        $attachments    = get_children(
    26252625            array(
    26262626                'post_parent'    => $id,
  • trunk/src/wp-includes/option.php

    r57029 r57053  
    476476    } elseif ( $grouped_options['no'] ) {
    477477        $alloptions = wp_load_alloptions( true );
     478
    478479        foreach ( $grouped_options['no'] as $option ) {
    479480            if ( isset( $alloptions[ $option ] ) ) {
     
    481482            }
    482483        }
     484
    483485        wp_cache_set( 'alloptions', $alloptions, 'options' );
    484486    }
     
    844846            // Update the cached value based on where it is currently cached.
    845847            $alloptions = wp_load_alloptions( true );
     848
    846849            if ( isset( $alloptions[ $option ] ) ) {
    847850                $alloptions[ $option ] = $serialized_value;
     
    855858
    856859            $alloptions = wp_load_alloptions( true );
     860
    857861            $alloptions[ $option ] = $serialized_value;
    858862            wp_cache_set( 'alloptions', $alloptions, 'options' );
     
    860864            // Delete the alloptions cache, then set the individual cache.
    861865            $alloptions = wp_load_alloptions( true );
     866
    862867            if ( isset( $alloptions[ $option ] ) ) {
    863868                unset( $alloptions[ $option ] );
     
    10901095        if ( 'yes' === $row->autoload ) {
    10911096            $alloptions = wp_load_alloptions( true );
     1097
    10921098            if ( is_array( $alloptions ) && isset( $alloptions[ $option ] ) ) {
    10931099                unset( $alloptions[ $option ] );
     
    12171223            // If option is not in alloptions, it is not autoloaded and thus has a timeout.
    12181224            $alloptions = wp_load_alloptions();
     1225
    12191226            if ( ! isset( $alloptions[ $transient_option ] ) ) {
    12201227                $transient_timeout = '_transient_timeout_' . $transient;
  • trunk/src/wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php

    r56985 r57053  
    132132            if ( ! empty( $latest_posts->posts ) ) {
    133133                $posts = wp_list_sort( $latest_posts->posts, 'post_modified_gmt', 'DESC' );
     134
    134135                $sitemap_entry['lastmod'] = wp_date( DATE_W3C, strtotime( $posts[0]->post_modified_gmt ) );
    135136            }
Note: See TracChangeset for help on using the changeset viewer.