Changeset 31083 for trunk/src/wp-includes/class-wp-customize-section.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-section.php
r30714 r31083 176 176 * @return bool Whether the section is active to the current preview. 177 177 */ 178 public finalfunction active() {178 final public function active() { 179 179 $section = $this; 180 180 $active = call_user_func( $this->active_callback, $this ); … … 231 231 * @return bool False if theme doesn't support the section or user doesn't have the capability. 232 232 */ 233 public finalfunction check_capabilities() {233 final public function check_capabilities() { 234 234 if ( $this->capability && ! call_user_func_array( 'current_user_can', (array) $this->capability ) ) { 235 235 return false; … … 250 250 * @return string Contents of the section. 251 251 */ 252 public finalfunction get_content() {252 final public function get_content() { 253 253 ob_start(); 254 254 $this->maybe_render(); … … 263 263 * @since 3.4.0 264 264 */ 265 public finalfunction maybe_render() {265 final public function maybe_render() { 266 266 if ( ! $this->check_capabilities() ) { 267 267 return;
Note: See TracChangeset
for help on using the changeset viewer.