Make WordPress Core


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

Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value. Constructors do not have meaningful return values, anything that is returned from here is discarded.

See #30799.

File:
1 edited

Legend:

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

    r31083 r31126  
    7474         *                                      theme mod or option name.
    7575         * @param array                $args    Setting arguments.
    76          * @return WP_Customize_Setting $setting
    7776         */
    7877        public function __construct( $manager, $id, $args = array() ) {
    … …  
    10099                if ( $this->sanitize_js_callback )
    101100                        add_filter( "customize_sanitize_js_{$this->id}", $this->sanitize_js_callback, 10, 2 );
    102 
    103                 return $this;
    104101        }
    105102
Note: See TracChangeset for help on using the changeset viewer.