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-background-position-control.php

    r41162 r42343  
    4040        $options = array(
    4141            array(
    42                 'left top'   => array( 'label' => __( 'Top Left' ), 'icon' => 'dashicons dashicons-arrow-left-alt' ),
    43                 'center top' => array( 'label' => __( 'Top' ), 'icon' => 'dashicons dashicons-arrow-up-alt' ),
    44                 'right top'  => array( 'label' => __( 'Top Right' ), 'icon' => 'dashicons dashicons-arrow-right-alt' ),
     42                'left top'   => array(
     43                    'label' => __( 'Top Left' ),
     44                    'icon'  => 'dashicons dashicons-arrow-left-alt',
     45                ),
     46                'center top' => array(
     47                    'label' => __( 'Top' ),
     48                    'icon'  => 'dashicons dashicons-arrow-up-alt',
     49                ),
     50                'right top'  => array(
     51                    'label' => __( 'Top Right' ),
     52                    'icon'  => 'dashicons dashicons-arrow-right-alt',
     53                ),
    4554            ),
    4655            array(
    47                 'left center'   => array( 'label' => __( 'Left' ), 'icon' => 'dashicons dashicons-arrow-left-alt' ),
    48                 'center center' => array( 'label' => __( 'Center' ), 'icon' => 'background-position-center-icon' ),
    49                 'right center'  => array( 'label' => __( 'Right' ), 'icon' => 'dashicons dashicons-arrow-right-alt' ),
     56                'left center'   => array(
     57                    'label' => __( 'Left' ),
     58                    'icon'  => 'dashicons dashicons-arrow-left-alt',
     59                ),
     60                'center center' => array(
     61                    'label' => __( 'Center' ),
     62                    'icon'  => 'background-position-center-icon',
     63                ),
     64                'right center'  => array(
     65                    'label' => __( 'Right' ),
     66                    'icon'  => 'dashicons dashicons-arrow-right-alt',
     67                ),
    5068            ),
    5169            array(
    52                 'left bottom'   => array( 'label' => __( 'Bottom Left' ), 'icon' => 'dashicons dashicons-arrow-left-alt' ),
    53                 'center bottom' => array( 'label' => __( 'Bottom' ), 'icon' => 'dashicons dashicons-arrow-down-alt' ),
    54                 'right bottom'  => array( 'label' => __( 'Bottom Right' ), 'icon' => 'dashicons dashicons-arrow-right-alt' ),
     70                'left bottom'   => array(
     71                    'label' => __( 'Bottom Left' ),
     72                    'icon'  => 'dashicons dashicons-arrow-left-alt',
     73                ),
     74                'center bottom' => array(
     75                    'label' => __( 'Bottom' ),
     76                    'icon'  => 'dashicons dashicons-arrow-down-alt',
     77                ),
     78                'right bottom'  => array(
     79                    'label' => __( 'Bottom Right' ),
     80                    'icon'  => 'dashicons dashicons-arrow-right-alt',
     81                ),
    5582            ),
    5683        );
Note: See TracChangeset for help on using the changeset viewer.