[wp-trac] [WordPress Trac] #40019: wp_get_custom_css_post returns Post that are not Custom CSS CPTs

WordPress Trac noreply at wordpress.org
Sun Mar 5 07:10:19 UTC 2017


#40019: wp_get_custom_css_post returns Post that are not Custom CSS CPTs
-------------------------------+------------------------------
 Reporter:  starepod           |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Customize          |     Version:  4.7.2
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by westonruter):

 * keywords:   => reporter-feedback


Comment:

 @starepod thanks for the report. The only way I can see this happening is
 if you have a plugin that is somehow modifying the query results obtained
 in `wp_get_custom_css_post()`. Specifically, if a plugin is modifying the
 query vars in `pre_get_posts` or filtering the posts queried via something
 like `posts_results`, then this could result in something other than the
 `custom_css` post being returned. Do you have any plugins activated that
 could be doing this?

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


More information about the wp-trac mailing list