Commit a5eddea
committed
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@56543 602fd350-edb4-49c9-b593-d223f7449a821 parent dc76011 commit a5eddea
File tree
2 files changed
+12
-4
lines changed- src/wp-includes
- tests/phpunit/tests/user
2 files changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1122 | 1122 | | |
1123 | 1123 | | |
1124 | 1124 | | |
1125 | | - | |
| 1125 | + | |
| 1126 | + | |
1126 | 1127 | | |
1127 | 1128 | | |
1128 | 1129 | | |
| |||
1145 | 1146 | | |
1146 | 1147 | | |
1147 | 1148 | | |
1148 | | - | |
| 1149 | + | |
| 1150 | + | |
1149 | 1151 | | |
1150 | 1152 | | |
1151 | 1153 | | |
| |||
1166 | 1168 | | |
1167 | 1169 | | |
1168 | 1170 | | |
1169 | | - | |
| 1171 | + | |
| 1172 | + | |
1170 | 1173 | | |
1171 | 1174 | | |
1172 | 1175 | | |
| |||
1188 | 1191 | | |
1189 | 1192 | | |
1190 | 1193 | | |
1191 | | - | |
| 1194 | + | |
| 1195 | + | |
1192 | 1196 | | |
1193 | 1197 | | |
1194 | 1198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2253 | 2253 | | |
2254 | 2254 | | |
2255 | 2255 | | |
| 2256 | + | |
2256 | 2257 | | |
2257 | 2258 | | |
2258 | 2259 | | |
| |||
2285 | 2286 | | |
2286 | 2287 | | |
2287 | 2288 | | |
| 2289 | + | |
2288 | 2290 | | |
2289 | 2291 | | |
2290 | 2292 | | |
| |||
2321 | 2323 | | |
2322 | 2324 | | |
2323 | 2325 | | |
| 2326 | + | |
2324 | 2327 | | |
2325 | 2328 | | |
2326 | 2329 | | |
| |||
2352 | 2355 | | |
2353 | 2356 | | |
2354 | 2357 | | |
| 2358 | + | |
2355 | 2359 | | |
2356 | 2360 | | |
2357 | 2361 | | |
| |||
0 commit comments