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

WordPress Trac noreply at wordpress.org
Thu Jan 1 00:49:46 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:
---------------------------+------------------------------
Changes (by GaryJ):

 * keywords:   => needs-refresh


Comment:

 The patch should follow code-standards:

 {{{
 if ( ! is_int( $priority ) ) {
         return false;
 }
 }}}

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


More information about the wp-trac mailing list