Make WordPress Core


Ignore:
Timestamp:
01/08/2015 06:01:08 AM (10 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-setting.php

    r30676 r31083  
    171171     * @return false|null False if cap check fails or value isn't set.
    172172     */
    173     public final function save() {
     173    final public function save() {
    174174        $value = $this->post_value();
    175175
     
    200200     * @return mixed The default value on failure, otherwise the sanitized value.
    201201     */
    202     public final function post_value( $default = null ) {
     202    final public function post_value( $default = null ) {
    203203        // Check for a cached value
    204204        if ( isset( $this->_post_value ) )
     
    386386     * @return bool False if theme doesn't support the setting or user can't change setting, otherwise true.
    387387     */
    388     public final function check_capabilities() {
     388    final public function check_capabilities() {
    389389        if ( $this->capability && ! call_user_func_array( 'current_user_can', (array) $this->capability ) )
    390390            return false;
Note: See TracChangeset for help on using the changeset viewer.