[wp-trac] [WordPress Trac] #42699: WP_Post $post object not properly returning values for meta keys

WordPress Trac noreply at wordpress.org
Sun Nov 26 02:03:51 UTC 2017


#42699: WP_Post $post object not properly returning values for meta keys
--------------------------------+------------------------------
 Reporter:  saiu                |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Options, Meta APIs  |     Version:  4.9
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:
--------------------------------+------------------------------

Comment (by saiu):

 Also, I'm using a transient for this part. I just checked the transient in
 the DB and it looks like each post is coming back as a `WP_Post`
 object...I think. The first entry, which does not work properly in the
 `$post->projectlink` issue starts like this:
 `s:5:"posts";a:8:{i:0;O:7:"WP_Post":24:{s:2:"ID";i:28;s:11:"post_author";s:1:"1";s:9:"post_date";s:19:"2017-11-07
 17:50:43";s:13:"post_date_gmt";s:19:"2017-11-07
 17:50:43";s:12:"post_content";s:67:"Test
 content.";s:10:"post_title";s:34:"`

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


More information about the wp-trac mailing list