Coding Standards: Remove unused return value for WP_Object_Cache::__set().
This resolves a WPCS warning:
{{{
Assignments must be the first block of code on a line
}}}
Note: This is enforced by PHPCS 3.10.3.
Follow-up to [28521], [29146].
Props jrf.
See #62076, #61607.
Built from https://develop.svn.wordpress.org/trunk@59066
git-svn-id: http://core.svn.wordpress.org/trunk@58462 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -101,10 +101,9 @@ class WP_Object_Cache {
|
|||||||
*
|
*
|
||||||
* @param string $name Property to set.
|
* @param string $name Property to set.
|
||||||
* @param mixed $value Property value.
|
* @param mixed $value Property value.
|
||||||
* @return mixed Newly-set property.
|
|
||||||
*/
|
*/
|
||||||
public function __set( $name, $value ) {
|
public function __set( $name, $value ) {
|
||||||
return $this->$name = $value;
|
$this->$name = $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.7-alpha-59065';
|
$wp_version = '6.7-alpha-59066';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|||||||
Reference in New Issue
Block a user