mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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' git-svn-id: https://develop.svn.wordpress.org/trunk@20506 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -591,7 +591,6 @@ final class WP_Customize {
|
||||
$this->add_control( 'background_repeat', array(
|
||||
'label' => __( 'Background Repeat' ),
|
||||
'section' => 'background',
|
||||
'visibility' => 'background_image',
|
||||
'type' => 'radio',
|
||||
'choices' => array(
|
||||
'no-repeat' => __('No Repeat'),
|
||||
@@ -609,7 +608,6 @@ final class WP_Customize {
|
||||
$this->add_control( 'background_position_x', array(
|
||||
'label' => __( 'Background Position' ),
|
||||
'section' => 'background',
|
||||
'visibility' => 'background_image',
|
||||
'type' => 'radio',
|
||||
'choices' => array(
|
||||
'left' => __('Left'),
|
||||
@@ -626,7 +624,6 @@ final class WP_Customize {
|
||||
$this->add_control( 'background_attachment', array(
|
||||
'label' => __( 'Background Attachment' ),
|
||||
'section' => 'background',
|
||||
'visibility' => 'background_image',
|
||||
'type' => 'radio',
|
||||
'choices' => array(
|
||||
'fixed' => __('Fixed'),
|
||||
@@ -708,7 +705,6 @@ final class WP_Customize {
|
||||
'label' => __( 'Front page' ),
|
||||
'section' => 'static_front_page',
|
||||
'type' => 'dropdown-pages',
|
||||
'visibility' => array( 'show_on_front', 'page' ),
|
||||
) );
|
||||
|
||||
$this->add_setting( 'page_for_posts', array(
|
||||
@@ -721,7 +717,6 @@ final class WP_Customize {
|
||||
'label' => __( 'Posts page' ),
|
||||
'section' => 'static_front_page',
|
||||
'type' => 'dropdown-pages',
|
||||
'visibility' => array( 'show_on_front', 'page' ),
|
||||
) );
|
||||
|
||||
/* Site Title & Tagline */
|
||||
|
||||
Reference in New Issue
Block a user