Changeset 31083 for trunk/src/wp-includes/class-wp-customize-panel.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-panel.php
r30714 r31083 167 167 * @return bool Whether the panel is active to the current preview. 168 168 */ 169 public finalfunction active() {169 final public function active() { 170 170 $panel = $this; 171 171 $active = call_user_func( $this->active_callback, $this ); … … 222 222 * @return bool False if theme doesn't support the panel or the user doesn't have the capability. 223 223 */ 224 public finalfunction check_capabilities() {224 final public function check_capabilities() { 225 225 if ( $this->capability && ! call_user_func_array( 'current_user_can', (array) $this->capability ) ) { 226 226 return false; … … 241 241 * @return string Content for the panel. 242 242 */ 243 public finalfunction get_content() {243 final public function get_content() { 244 244 ob_start(); 245 245 $this->maybe_render(); … … 254 254 * @since 4.0.0 255 255 */ 256 public finalfunction maybe_render() {256 final public function maybe_render() { 257 257 if ( ! $this->check_capabilities() ) { 258 258 return;
Note: See TracChangeset
for help on using the changeset viewer.