WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/12/2019 06:40:16 AM (23 months ago)
Author:
pento
Message:

Coding Standards: Upgrade WPCS to 1.2.1.

This upgrade fixes quite a few false positives, as well as auto-fixing some indenting issues.

Fixes #45956.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/custom-header.php

    r43571 r44574  
    643643            <?php
    644644    endif;
    645 if ( ! empty( $this->default_headers ) ) :
    646     ?>
     645        if ( ! empty( $this->default_headers ) ) :
     646            ?>
    647647<tr>
    648648<th scope="row"><?php _e( 'Default Images' ); ?></th>
    649649<td>
    650     <?php if ( current_theme_supports( 'custom-header', 'uploads' ) ) : ?>
     650            <?php if ( current_theme_supports( 'custom-header', 'uploads' ) ) : ?>
    651651    <p><?php _e( 'If you don&lsquo;t want to upload your own image, you can use one of these cool headers, or show a random one.' ); ?></p>
    652652    <?php else : ?>
    653653    <p><?php _e( 'You can use one of these cool headers or show a random one on each page.' ); ?></p>
    654654    <?php endif; ?>
    655     <?php
    656     $this->show_header_selector( 'default' );
    657     ?>
     655            <?php
     656            $this->show_header_selector( 'default' );
     657            ?>
    658658</td>
    659659</tr>
    660     <?php
     660            <?php
    661661    endif;
    662 if ( get_header_image() ) :
    663     ?>
     662        if ( get_header_image() ) :
     663            ?>
    664664<tr>
    665665<th scope="row"><?php _e( 'Remove Image' ); ?></th>
    666666<td>
    667667    <p><?php _e( 'This will remove the header image. You will not be able to restore any customizations.' ); ?></p>
    668     <?php submit_button( __( 'Remove Header Image' ), '', 'removeheader', false ); ?>
     668            <?php submit_button( __( 'Remove Header Image' ), '', 'removeheader', false ); ?>
    669669</td>
    670670</tr>
    671     <?php
     671            <?php
    672672    endif;
    673673
    674     $default_image = sprintf( get_theme_support( 'custom-header', 'default-image' ), get_template_directory_uri(), get_stylesheet_directory_uri() );
    675 if ( $default_image && get_header_image() != $default_image ) :
    676     ?>
     674        $default_image = sprintf( get_theme_support( 'custom-header', 'default-image' ), get_template_directory_uri(), get_stylesheet_directory_uri() );
     675        if ( $default_image && get_header_image() != $default_image ) :
     676            ?>
    677677<tr>
    678678<th scope="row"><?php _e( 'Reset Image' ); ?></th>
    679679<td>
    680680    <p><?php _e( 'This will restore the original header image. You will not be able to restore any customizations.' ); ?></p>
    681     <?php submit_button( __( 'Restore Original Header Image' ), '', 'resetheader', false ); ?>
     681            <?php submit_button( __( 'Restore Original Header Image' ), '', 'resetheader', false ); ?>
    682682</td>
    683683</tr>
     
    742742
    743743        wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' );
    744 ?>
     744        ?>
    745745
    746746        <?php submit_button( null, 'primary', 'save-header-options' ); ?>
Note: See TracChangeset for help on using the changeset viewer.