[wp-trac] Re: [WordPress Trac] #9009: delete_post_meta_by_key() fix + enhancement

WordPress Trac wp-trac at lists.automattic.com
Sun Feb 1 14:29:01 GMT 2009

#9009: delete_post_meta_by_key() fix + enhancement
 Reporter:  Denis-de-Bernardy        |        Owner:  anonymous
     Type:  defect (bug)             |       Status:  new      
 Priority:  normal                   |    Milestone:  2.8      
Component:  General                  |      Version:  2.7      
 Severity:  normal                   |   Resolution:           
 Keywords:  has-patch, dev-feedback  |  
Changes (by Denis-de-Bernardy):

  * keywords:  has-patch => has-patch, dev-feedback


 The second patch is a suggested enhancement. It replaces the = operator
 with a LIKE operator, allowing to mass-delete post meta, like:


 I needed this a couple of time in my own plugins and ended up using SQL to
 achieve it. Having it in the wp core would be a plus.

Ticket URL: <http://trac.wordpress.org/ticket/9009#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list