[wp-trac] [WordPress Trac] #37534: Saving an array with update_post_meta bug

WordPress Trac noreply at wordpress.org
Mon Aug 1 02:28:50 UTC 2016


#37534: Saving an array with update_post_meta bug
--------------------------------+------------------------------
 Reporter:  Pulsar_Media        |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Options, Meta APIs  |     Version:  4.5.3
 Severity:  normal              |  Resolution:
 Keywords:  reporter-feedback   |     Focuses:
--------------------------------+------------------------------
Changes (by dd32):

 * keywords:   => reporter-feedback


Comment:

 Hi @Pulsar_Media  and welcome to Trac

 Would you be able to post a piece of code that demonstrates the behaviour
 you're seeing?

 Also, keep in mind that you can have multiple meta_key's of the same name
 for one post, ensure you're setting the 3rd parameter of `get_post_meta()`
 to `true` if you only expect a single meta value to exist for that meta
 key.

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


More information about the wp-trac mailing list