mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Code Modernization: Use wp_trigger_error() in WP_User_Query magic methods.
Replaces `trigger_error()` with `wp_trigger_error()` in each of the `WP_User_Query` magic methods. [56353] added the dynamic properties deprecation messages to the `__get()`, `__set()`, `__isset()`, `__unset()` magic methods. Since that commit, `wp_trigger_error()` was introduced (see [56530]) as a wrapper for `trigger_error()`. Follow-up to [56353], [56530]. See #58897, #57686. Built from https://develop.svn.wordpress.org/trunk@56543 git-svn-id: http://core.svn.wordpress.org/trunk@56055 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3356628935
commit
6b0b3eb6a1
@ -1122,7 +1122,8 @@ class WP_User_Query {
|
||||
return $this->$name;
|
||||
}
|
||||
|
||||
trigger_error(
|
||||
wp_trigger_error(
|
||||
__METHOD__,
|
||||
"The property `{$name}` is not declared. Getting a dynamic property is " .
|
||||
'deprecated since version 6.4.0! Instead, declare the property on the class.',
|
||||
E_USER_DEPRECATED
|
||||
@ -1145,7 +1146,8 @@ class WP_User_Query {
|
||||
return;
|
||||
}
|
||||
|
||||
trigger_error(
|
||||
wp_trigger_error(
|
||||
__METHOD__,
|
||||
"The property `{$name}` is not declared. Setting a dynamic property is " .
|
||||
'deprecated since version 6.4.0! Instead, declare the property on the class.',
|
||||
E_USER_DEPRECATED
|
||||
@ -1166,7 +1168,8 @@ class WP_User_Query {
|
||||
return isset( $this->$name );
|
||||
}
|
||||
|
||||
trigger_error(
|
||||
wp_trigger_error(
|
||||
__METHOD__,
|
||||
"The property `{$name}` is not declared. Checking `isset()` on a dynamic property " .
|
||||
'is deprecated since version 6.4.0! Instead, declare the property on the class.',
|
||||
E_USER_DEPRECATED
|
||||
@ -1188,7 +1191,8 @@ class WP_User_Query {
|
||||
return;
|
||||
}
|
||||
|
||||
trigger_error(
|
||||
wp_trigger_error(
|
||||
__METHOD__,
|
||||
"A property `{$name}` is not declared. Unsetting a dynamic property is " .
|
||||
'deprecated since version 6.4.0! Instead, declare the property on the class.',
|
||||
E_USER_DEPRECATED
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.4-alpha-56542';
|
||||
$wp_version = '6.4-alpha-56543';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user