[wp-trac] [WordPress Trac] #30875: enforce integers in add_filter priority

WordPress Trac noreply at wordpress.org
Thu Jan 1 01:04:22 UTC 2015


#30875: enforce integers in add_filter priority
---------------------------+------------------------------
 Reporter:  drrobotnik     |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  General        |     Version:  4.1
 Severity:  normal         |  Resolution:
 Keywords:  needs-refresh  |     Focuses:
---------------------------+------------------------------

Comment (by drrobotnik):

 Replying to [comment:1 GaryJ]:
 > The patch should follow code-standards:
 >
 > {{{
 > if ( ! is_int( $priority ) ) {
 >       return false;
 > }
 > }}}

 Fixed. I don't know how to delete the original attachment, so it's the
 newest one.

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


More information about the wp-trac mailing list