[wp-trac] [WordPress Trac] #36719: get_post_meta
WordPress Trac
noreply at wordpress.org
Fri Apr 29 12:30:53 UTC 2016
#36719: get_post_meta
-----------------------------+------------------------------
Reporter: pubblivori | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version: 4.5.1
Severity: normal | Resolution:
Keywords: | Focuses:
-----------------------------+------------------------------
Comment (by pubblivori):
I'm still doing some tests... but the fact is that a function using it
stopped working after the upgrade...
I have to do te same reverse test into another site using the previous wp
version. If the outuput is not the same.... something went wrong....
{{{
Here the piece of code isolated:
//$vecchia_scheda = get_post_meta( 68846, 'vecchia_scheda', true ); //not
working after upgrade
$custom_fields = get_post_custom(68846);
$vecchia_scheda = $custom_fields['vecchia_scheda'][0];
//mod working
$vecchio_slug= get_post_field( 'post_name', $vecchia_scheda );
$nuovo_slug= get_post_field( 'post_name', $ID );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36719#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list