[wp-trac] [WordPress Trac] #32529: wp-admin/includes files should not contain hooks
WordPress Trac
noreply at wordpress.org
Fri May 29 16:40:43 UTC 2015
#32529: wp-admin/includes files should not contain hooks
----------------------------+-----------------------
Reporter: wonderboymusic | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.3
Component: Administration | Version: trunk
Severity: normal | Keywords: has-patch
Focuses: |
----------------------------+-----------------------
Following up on #30947
There are random actions and filters littered among files like `misc.php`.
These files contain a bunch of functions that won't work outside of admin
context and are typically only loaded in files that have already loaded
the admin bootstrap.
These hooks should move to `wp-admin/includes/admin-filters.php` and `wp-
admin/includes/ms-admin-filters.php` which can load where appropriate in
``wp-admin/includes/admin.php`.
A lot of these hooks (old `media.php`) are essentially deprecated.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32529>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list