WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/18/2012 05:13:31 PM (8 years ago)
Author:
koopersmith
Message:

Remove 'visibility' parameter from WP_Customize_Control. Handle control visibility in JS instead. see #19910.

  • Have the header text color picker display only when header_textcolor != 'blank'
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-customize.php

    r20496 r20506  
    592592            'label'      => __( 'Background Repeat' ),
    593593            'section'    => 'background',
    594             'visibility' => 'background_image',
    595594            'type'       => 'radio',
    596595            'choices'    => array(
     
    610609            'label'      => __( 'Background Position' ),
    611610            'section'    => 'background',
    612             'visibility' => 'background_image',
    613611            'type'       => 'radio',
    614612            'choices'    => array(
     
    627625            'label'      => __( 'Background Attachment' ),
    628626            'section'    => 'background',
    629             'visibility' => 'background_image',
    630627            'type'       => 'radio',
    631628            'choices'    => array(
     
    709706            'section'    => 'static_front_page',
    710707            'type'       => 'dropdown-pages',
    711             'visibility' => array( 'show_on_front', 'page' ),
    712708        ) );
    713709
     
    722718            'section'    => 'static_front_page',
    723719            'type'       => 'dropdown-pages',
    724             'visibility' => array( 'show_on_front', 'page' ),
    725720        ) );
    726721
Note: See TracChangeset for help on using the changeset viewer.