[wp-trac] [WordPress Trac] #30862: Remove negative priority on actions

WordPress Trac noreply at wordpress.org
Wed Dec 31 21:29:57 UTC 2014


#30862: Remove negative priority on actions
-------------------------------+----------------------
 Reporter:  drrobotnik         |       Owner:
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:
Component:  Plugins            |     Version:  4.1
 Severity:  normal             |  Resolution:  wontfix
 Keywords:  close 2nd-opinion  |     Focuses:
-------------------------------+----------------------

Comment (by jorbin):

 [http://codex.wordpress.org/Function_Reference/add_action Our]
 [https://developer.wordpress.org/reference/functions/add_action/
 documentation] points out that the priority should be an integer.
 [http://php.net/manual/en/language.types.integer.php Integers] are all
 numbers in the set {..., -2, -1, 0, 1, 2, ...}.  Changing this to only
 accept positive integers would cause plugins to no longer function in the
 way that they intend to.

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


More information about the wp-trac mailing list