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. Built from https://develop.svn.wordpress.org/trunk@31126 git-svn-id: http://core.svn.wordpress.org/trunk@31107 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
da99d29a59
commit
0a511680f4
|
@ -25,7 +25,7 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base {
|
|||
|
||||
// Check if possible to use ftp functions.
|
||||
if ( ! @include_once( ABSPATH . 'wp-admin/includes/class-ftp.php' ) ) {
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
$this->ftp = new ftp();
|
||||
|
||||
|
|
|
@ -676,7 +676,6 @@ class WP_Object_Cache {
|
|||
* Sets up object properties; PHP 5 style constructor
|
||||
*
|
||||
* @since 2.0.8
|
||||
* @return null|WP_Object_Cache If cache is disabled, returns null.
|
||||
*/
|
||||
public function __construct() {
|
||||
global $blog_id;
|
||||
|
|
|
@ -1961,7 +1961,7 @@ class WP_Http_Cookie {
|
|||
}
|
||||
} else {
|
||||
if ( !isset( $data['name'] ) )
|
||||
return false;
|
||||
return;
|
||||
|
||||
// Set properties based directly on parameters.
|
||||
foreach ( array( 'name', 'value', 'path', 'domain', 'port' ) as $field ) {
|
||||
|
|
|
@ -22,7 +22,6 @@ class WP_Ajax_Response {
|
|||
* @see WP_Ajax_Response::add()
|
||||
*
|
||||
* @param string|array $args Optional. Will be passed to add() method.
|
||||
* @return WP_Ajax_Response
|
||||
*/
|
||||
public function __construct( $args = '' ) {
|
||||
if ( !empty($args) )
|
||||
|
|
|
@ -154,8 +154,6 @@ class WP_Customize_Panel {
|
|||
$this->instance_number = self::$instance_count;
|
||||
|
||||
$this->sections = array(); // Users cannot customize the $sections array.
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -163,8 +163,6 @@ class WP_Customize_Section {
|
|||
$this->instance_number = self::$instance_count;
|
||||
|
||||
$this->controls = array(); // Users cannot customize the $controls array.
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -73,7 +73,6 @@ class WP_Customize_Setting {
|
|||
* @param string $id An specific ID of the setting. Can be a
|
||||
* theme mod or option name.
|
||||
* @param array $args Setting arguments.
|
||||
* @return WP_Customize_Setting $setting
|
||||
*/
|
||||
public function __construct( $manager, $id, $args = array() ) {
|
||||
$keys = array_keys( get_object_vars( $this ) );
|
||||
|
@ -99,8 +98,6 @@ class WP_Customize_Setting {
|
|||
|
||||
if ( $this->sanitize_js_callback )
|
||||
add_filter( "customize_sanitize_js_{$this->id}", $this->sanitize_js_callback, 10, 2 );
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -53,7 +53,6 @@ class WP_Error {
|
|||
* @param string|int $code Error code
|
||||
* @param string $message Error message
|
||||
* @param mixed $data Optional. Error data.
|
||||
* @return WP_Error
|
||||
*/
|
||||
public function __construct( $code = '', $message = '', $data = '' ) {
|
||||
if ( empty($code) )
|
||||
|
|
|
@ -41,8 +41,6 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||
* or replace XMLRPC methods.
|
||||
*
|
||||
* @since 1.5.0
|
||||
*
|
||||
* @return wp_xmlrpc_server
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->methods = array(
|
||||
|
@ -3096,7 +3094,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||
*
|
||||
* @since 2.7.0
|
||||
*
|
||||
* @param array $args. Contains:
|
||||
* @param array $args Contains:
|
||||
* - blog_id (unused)
|
||||
* - username
|
||||
* - password
|
||||
|
|
|
@ -318,7 +318,6 @@ class WP_Locale {
|
|||
* @uses WP_Locale::register_globals()
|
||||
* @since 2.1.0
|
||||
*
|
||||
* @return WP_Locale
|
||||
*/
|
||||
function __construct() {
|
||||
$this->init();
|
||||
|
|
|
@ -3939,7 +3939,6 @@ class WP_Query {
|
|||
* @access public
|
||||
*
|
||||
* @param string $query URL query string.
|
||||
* @return WP_Query
|
||||
*/
|
||||
public function __construct($query = '') {
|
||||
if ( ! empty($query) ) {
|
||||
|
@ -4172,7 +4171,7 @@ class WP_Query {
|
|||
* @since 3.1.0
|
||||
*
|
||||
* @param mixed $taxonomy Optional. Taxonomy slug or slugs.
|
||||
* @param mixed $term. Optional. Term ID, name, slug or array of Term IDs, names, and slugs.
|
||||
* @param mixed $term Optional. Term ID, name, slug or array of Term IDs, names, and slugs.
|
||||
* @return bool
|
||||
*/
|
||||
public function is_tax( $taxonomy = '', $term = '' ) {
|
||||
|
|
|
@ -2171,7 +2171,6 @@ class WP_Rewrite {
|
|||
* @since 1.5.0
|
||||
* @access public
|
||||
*
|
||||
* @return WP_Rewrite
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->init();
|
||||
|
|
|
@ -486,7 +486,6 @@ class WP_User_Query {
|
|||
* @since 3.1.0
|
||||
*
|
||||
* @param null|string|array $args Optional. The query variables.
|
||||
* @return WP_User_Query
|
||||
*/
|
||||
public function __construct( $query = null ) {
|
||||
if ( ! empty( $query ) ) {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.2-alpha-31125';
|
||||
$wp_version = '4.2-alpha-31126';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue