mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Theme Customizer: Add background repeat, position, and attachment settings. Change visibility parameter to accept a string or array( , ). see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20263 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -106,10 +106,18 @@ do_action( 'customize_controls_print_scripts' );
|
||||
);
|
||||
|
||||
if ( $setting->visibility ) {
|
||||
$settings['controls'][ $id ]['visibility'] = array(
|
||||
'id' => $setting->visibility[0],
|
||||
'value' => isset( $setting->visibility[1] ) ? $setting->visibility[1] : true,
|
||||
);
|
||||
if ( is_string( $setting->visibility ) ) {
|
||||
$settings['controls'][ $id ]['visibility'] = array(
|
||||
'id' => $setting->visibility,
|
||||
'value' => true,
|
||||
);
|
||||
} else {
|
||||
$settings['controls'][ $id ]['visibility'] = array(
|
||||
'id' => $setting->visibility[0],
|
||||
'value' => $setting->visibility[1],
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user