Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (7 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-color-control.php

    r41329 r42343  
    4949     */
    5050    public function __construct( $manager, $id, $args = array() ) {
    51         $this->statuses = array( '' => __('Default') );
     51        $this->statuses = array( '' => __( 'Default' ) );
    5252        parent::__construct( $manager, $id, $args );
    5353    }
     
    7171    public function to_json() {
    7272        parent::to_json();
    73         $this->json['statuses'] = $this->statuses;
     73        $this->json['statuses']     = $this->statuses;
    7474        $this->json['defaultValue'] = $this->setting->default;
    75         $this->json['mode'] = $this->mode;
     75        $this->json['mode']         = $this->mode;
    7676    }
    7777
     
    112112            <# } else { #>
    113113                <input class="color-picker-hex" type="text" maxlength="7" placeholder="{{ defaultValue }}" {{ defaultValueAttr }} />
    114             <# } #>
     114             <# } #>
    115115            </label>
    116116        </div>
Note: See TracChangeset for help on using the changeset viewer.