Make WordPress Core


Ignore:
Timestamp:
11/02/2023 12:02:36 AM (17 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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;
Note: See TracChangeset for help on using the changeset viewer.