[wp-trac] [WordPress Trac] #32224: delete_post_meta() not working as expected when $meta_value is specified as 0 or '0'

WordPress Trac noreply at wordpress.org
Fri May 1 15:32:51 UTC 2015


#32224: delete_post_meta() not working as expected when $meta_value is specified as
0 or '0'
--------------------------------+---------------------------
 Reporter:  husobj              |       Owner:  boonebgorges
     Type:  defect (bug)        |      Status:  reviewing
 Priority:  normal              |   Milestone:  4.3
Component:  Options, Meta APIs  |     Version:  4.2.1
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:
--------------------------------+---------------------------

Comment (by boonebgorges):

 Scratch that idea. It'll break every plugin that has its own
 `delete_metadata()` wrappers.

 There may be no backward-compatible way to fix this bug and also let
 `delete_metadata()` work properly with `$meta_value = ''`. We'll just have
 to document that quirk.

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


More information about the wp-trac mailing list