Commit 5a9dcbc
committed
Command Palette: Add network admin check
To prevent the registration of commands that would cause a 404 error in the network admin screen, pass the result of the `is_network_admin()` check to the command palette initialization function.
Follow-up to [61022].
Props jorbin, ntsekouras, soean, tobiasbg
Fixes #64125.
git-svn-id: https://develop.svn.wordpress.org/trunk@61121 602fd350-edb4-49c9-b593-d223f7449a821 parent 5b03f1f commit 5a9dcbc
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3430 | 3430 | | |
3431 | 3431 | | |
3432 | 3432 | | |
3433 | | - | |
| 3433 | + | |
| 3434 | + | |
| 3435 | + | |
3434 | 3436 | | |
3435 | 3437 | | |
3436 | 3438 | | |
| |||
0 commit comments