Make WordPress Core


Ignore:
Timestamp:
07/01/2019 08:22:31 AM (6 years ago)
Author:
pento
Message:

Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in the default themes.

See #47632

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyeleven/inc/theme-options.php

    r45218 r45581  
    366366 */
    367367function twentyeleven_theme_options_validate( $input ) {
    368     $output = $defaults = twentyeleven_get_default_theme_options();
     368    $defaults = twentyeleven_get_default_theme_options();
     369    $output   = $defaults;
    369370
    370371    // Color scheme must be in our array of color scheme options
     
    374375
    375376    // Our defaults for the link color may have changed, based on the color scheme.
    376     $output['link_color'] = $defaults['link_color'] = twentyeleven_get_default_link_color( $output['color_scheme'] );
     377    $defaults['link_color'] = twentyeleven_get_default_link_color( $output['color_scheme'] );
     378    $output['link_color']   = $defaults['link_color'];
    377379
    378380    // Link color must be 3 or 6 hexadecimal characters
Note: See TracChangeset for help on using the changeset viewer.