Commit ebab9ea
Fix term_exists() check and remove unused variable
- Use `! is_array()` instead of `=== false` for `term_exists()` since it
never returns a bool (returns null|int|array|0).
- Remove unused `$taxonomy` variable in taxonomy permission check.
- Update MAX_UPDATE_DATA_SIZE docblock: enforced via maxLength (character
count), not byte size.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent bc456d7 commit ebab9ea
File tree
1 file changed
+2
-3
lines changed- src/wp-includes/collaboration
1 file changed
+2
-3
lines changedLines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
| 360 | + | |
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
365 | 364 | | |
366 | 365 | | |
367 | 366 | | |
| |||
0 commit comments