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

WordPress Trac noreply at wordpress.org
Tue Dec 30 04:04:16 UTC 2014


#30862: Remove negative priority on actions
--------------------------+-----------------------------
 Reporter:  drrobotnik    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 People have found that negative priority on actions can set themselves as
 the priority. It's clever, but should not be allowed as it makes
 priorities confusing, causes unintended consequences and can be abused. I
 consider this a bug as I don't think it was intended to be used this way
 or it would be mentioned in the docs. My suggestion is to either force a
 positive value, or check for negative index and change it to default
 value, 10.

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


More information about the wp-trac mailing list