Commit 5e2c4fb
committed
Add clarifying comments to global styles permission check
Comments explain why `true` is returned for missing/wrong post type (defers to the handler for a 404) and why `edit_post` is only checked after confirming the post is a global styles post.1 parent 393aaca commit 5e2c4fb
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
| 441 | + | |
441 | 442 | | |
442 | 443 | | |
443 | 444 | | |
444 | 445 | | |
| 446 | + | |
445 | 447 | | |
446 | 448 | | |
447 | 449 | | |
| |||
0 commit comments