Make WordPress Core


Ignore:
Timestamp:
01/08/2015 06:01:08 AM (12 years ago)
Author:
wonderboymusic
Message:

In Customizer classes:

  • public final function methods should be final public function - confusing Hack and aligns with PSR2
  • Some methods were missing access modifiers

See #30799.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-panel.php

    r30714 r31083  
    167167         * @return bool Whether the panel is active to the current preview.
    168168         */
    169         public final function active() {
     169        final public function active() {
    170170                $panel = $this;
    171171                $active = call_user_func( $this->active_callback, $this );
     
    222222         * @return bool False if theme doesn't support the panel or the user doesn't have the capability.
    223223         */
    224         public final function check_capabilities() {
     224        final public function check_capabilities() {
    225225                if ( $this->capability && ! call_user_func_array( 'current_user_can', (array) $this->capability ) ) {
    226226                        return false;
     
    241241         * @return string Content for the panel.
    242242         */
    243         public final function get_content() {
     243        final public function get_content() {
    244244                ob_start();
    245245                $this->maybe_render();
     
    254254         * @since 4.0.0
    255255         */
    256         public final function maybe_render() {
     256        final public function maybe_render() {
    257257                if ( ! $this->check_capabilities() ) {
    258258                        return;
Note: See TracChangeset for help on using the changeset viewer.