[wp-trac] [WordPress Trac] #54795: Bootstrap: Move navigation post type hooks to `admin-filters.php`
WordPress Trac
noreply at wordpress.org
Thu Apr 28 22:02:23 UTC 2022
#54795: Bootstrap: Move navigation post type hooks to `admin-filters.php`
--------------------------------------------------+-----------------------
Reporter: dlh | Owner: audrasjb
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.0
Component: Bootstrap/Load | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch commit assigned-for-commit | Focuses:
--------------------------------------------------+-----------------------
Comment (by SergeyBiryukov):
Replying to [comment:16 antonvlasenko]:
> In my pull request, I was more focused on hooks that definitely wouldn't
work on the front end (because callback functions weren't available for
them).
That was my understanding too, thanks for confirming!
Just noting that there are still a few `admin_*` hooks left in `default-
filters.php`, but those seem to be closely related to other non-admin
filters, so I think it's fine to leave them as is for now for better
context. In [53304], I was only focused on those that don't have any close
ties and are a better fit for `admin-filters.php`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54795#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list