Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (8 years ago)
Author:
pento
Message:

Code is Poetry.
WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/customize/class-wp-customize-background-image-control.php

    r38948 r42343  
    2727     */
    2828    public function __construct( $manager ) {
    29         parent::__construct( $manager, 'background_image', array(
    30             'label'    => __( 'Background Image' ),
    31             'section'  => 'background_image',
    32         ) );
     29        parent::__construct(
     30            $manager, 'background_image', array(
     31                'label'   => __( 'Background Image' ),
     32                'section' => 'background_image',
     33            )
     34        );
    3335    }
    3436
     
    4244
    4345        $custom_background = get_theme_support( 'custom-background' );
    44         wp_localize_script( 'customize-controls', '_wpCustomizeBackground', array(
    45             'defaults' => ! empty( $custom_background[0] ) ? $custom_background[0] : array(),
    46             'nonces' => array(
    47                 'add' => wp_create_nonce( 'background-add' ),
    48             ),
    49         ) );
     46        wp_localize_script(
     47            'customize-controls', '_wpCustomizeBackground', array(
     48                'defaults' => ! empty( $custom_background[0] ) ? $custom_background[0] : array(),
     49                'nonces'   => array(
     50                    'add' => wp_create_nonce( 'background-add' ),
     51                ),
     52            )
     53        );
    5054    }
    5155}
Note: See TracChangeset for help on using the changeset viewer.