Changeset 20319 for trunk/wp-includes/customize-controls.php
- Timestamp:
- 03/29/2012 06:35:54 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/customize-controls.php
r20295 r20319 108 108 109 109 foreach ( $this->controls as $id => $control ) { 110 $settings['controls'][ $id ] = $control->json(); 111 112 if ( $control->visibility ) { 113 if ( is_string( $control->visibility ) ) { 114 $settings['controls'][ $id ]['visibility'] = array( 115 'id' => $control->visibility, 116 'value' => true, 117 ); 118 } else { 119 $settings['controls'][ $id ]['visibility'] = array( 120 'id' => $control->visibility[0], 121 'value' => $control->visibility[1], 122 ); 123 } 124 125 } 110 $control->to_json(); 111 $settings['controls'][ $id ] = $control->json; 126 112 } 127 113
Note: See TracChangeset
for help on using the changeset viewer.