Changeset 31083 for trunk/src/wp-includes/class-wp-customize-control.php
- Timestamp:
- 01/08/2015 06:01:08 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-control.php
r30991 r31083 184 184 * @return bool Whether the control is active to the current preview. 185 185 */ 186 public finalfunction active() {186 final public function active() { 187 187 $control = $this; 188 188 $active = call_user_func( $this->active_callback, $this ); … … 225 225 * @return mixed The requested setting's value, if the setting exists. 226 226 */ 227 public finalfunction value( $setting_key = 'default' ) {227 final public function value( $setting_key = 'default' ) { 228 228 if ( isset( $this->settings[ $setting_key ] ) ) { 229 229 return $this->settings[ $setting_key ]->value(); … … 271 271 * @return bool False if theme doesn't support the control or user doesn't have the required permissions, otherwise true. 272 272 */ 273 public finalfunction check_capabilities() {273 final public function check_capabilities() { 274 274 foreach ( $this->settings as $setting ) { 275 275 if ( ! $setting->check_capabilities() ) … … 291 291 * @return string Contents of the control. 292 292 */ 293 public finalfunction get_content() {293 final public function get_content() { 294 294 ob_start(); 295 295 $this->maybe_render(); … … 305 305 * @uses WP_Customize_Control::render() 306 306 */ 307 public finalfunction maybe_render() {307 final public function maybe_render() { 308 308 if ( ! $this->check_capabilities() ) 309 309 return; … … 976 976 } 977 977 978 function print_header_image_template() {978 public function print_header_image_template() { 979 979 ?> 980 980 <script type="text/template" id="tmpl-header-choice"> … … 1186 1186 * @return bool Whether the widget is rendered. 1187 1187 */ 1188 function active_callback() {1188 public function active_callback() { 1189 1189 return $this->manager->widgets->is_widget_rendered( $this->widget_id ); 1190 1190 }
Note: See TracChangeset
for help on using the changeset viewer.