[wp-trac] [WordPress Trac] #37746: Replace `absint( $meta_id)` check in `delete_metadata_by_mid`, etc

WordPress Trac noreply at wordpress.org
Sat Aug 20 08:40:20 UTC 2016


#37746: Replace `absint( $meta_id)` check in `delete_metadata_by_mid`, etc
--------------------------------------+------------------------------
 Reporter:  peterwilsoncc             |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Options, Meta APIs        |     Version:  4.0
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------
Changes (by peterwilsoncc):

 * keywords:  needs-patch needs-unit-tests => has-patch has-unit-tests
 * version:   => 4.0


Comment:

 In [attachment:37746.diff]:

 * replace `absint` with `intval`
 * return false if `$meta_id` is zero or lower.

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


More information about the wp-trac mailing list