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

WordPress Trac noreply at wordpress.org
Wed Dec 31 21:08:01 UTC 2014


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

Comment (by boonebgorges):

 +1 to wontfix. Changing this will break too many things.

 Even if we didn't have to deal with backward compatibility, I'm not sure
 that disallowing negative priority is a great decision. If 0 (or 1) were
 the absolute lowest priority, it'd be impossible to use the hook to
 preempt 0-priority actions without resulting in race conditions. Having
 the entire number line at our disposal means that this is not an issue. A
 better idea is for us to promote polite conventions regarding the use of
 priorities.

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


More information about the wp-trac mailing list