[wp-trac] [WordPress Trac] #37534: Saving an array with update_post_meta bug
WordPress Trac
noreply at wordpress.org
Mon Aug 1 05:24:56 UTC 2016
#37534: Saving an array with update_post_meta bug
--------------------------------+----------------------
Reporter: Pulsar_Media | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Options, Meta APIs | Version: 4.5.3
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------------+----------------------
Changes (by dd32):
* keywords: reporter-feedback =>
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
FWIW it'll return an array of multiple values in an example such as this:
{{{
add_post_meta( 1, 'mykey', 'value1' );
add_post_meta( 1, 'mykey', 'value2' );
$array_of_values = get_post_meta( 1, 'mykey' );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37534#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list