Repository navigation
Commit 5e11bd0
committed
Tests: Restore the Abilities API setup filter stack.
Use `try`/`finally` around core ability and category registration so each simulated action is removed from `$wp_current_filter` even if registration throws.
Follow-up to [64266].
Developed in: #14296
Props shailu25.
See #65893.
git-svn-id: https://develop.svn.wordpress.org/trunk@64362 602fd350-edb4-49c9-b593-d223f7449a821 parent 3ed38fa commit 5e11bd0
1 file changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | | - | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | | - | |
32 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
33 | 40 | | |
34 | 41 | | |
35 | 42 | | |
| |||
0 commit comments