[wp-trac] [WordPress Trac] #26321: Warning message for update_post_thumbnail_cache()

WordPress Trac noreply at wordpress.org
Wed Feb 12 04:59:20 UTC 2014


#26321: Warning message for update_post_thumbnail_cache()
-------------------------------------------------+-------------------------
 Reporter:  klihelp                              |       Owner:
     Type:  defect (bug)                         |  wonderboymusic
 Priority:  normal                               |      Status:  closed
Component:  Cache API                            |   Milestone:  3.9
 Severity:  normal                               |     Version:  3.8
 Keywords:  3.9-early needs-unit-tests           |  Resolution:  fixed
  reporter-feedback has-patch                    |     Focuses:
-------------------------------------------------+-------------------------

Comment (by nacin):

 This would not set thumbnails_cached to true. It's possible someone is
 checking that de facto public property, no?

 I was not aware of a situation where $wp_query->posts is empty but
 $wp_query->post is not. Though perhaps if that is actually something that
 occurs, we should return false after all? (Ideally, posts[0] actually gets
 populated with post, but that's a separate thing.)

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


More information about the wp-trac mailing list