[wp-trac] [WordPress Trac] #32529: wp-admin/includes files should not contain hooks

WordPress Trac noreply at wordpress.org
Fri Jun 5 19:53:10 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          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+--------------------

Comment (by johnjamesjacoby):

 [https://core.trac.wordpress.org/attachment/ticket/32529/32529.02.patch
 32529.02.patch] suggests the following:

 * Alphabetize hooks by `$tag`
 * One empty line between hook types
 * Two empty lines between hook groups
 * Column align a few lines for improved readability

 Patch also moves `network_admin_notices` hooks to `ms-default-
 filters.php`.

 I have not tested actual hook priorities; this patch is largely cosmetic.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32529#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list