[wp-trac] [WordPress Trac] #39194: Invalid parameters in Custom CSS and Changeset queries

WordPress Trac noreply at wordpress.org
Fri Dec 9 01:26:36 UTC 2016


#39194: Invalid parameters in Custom CSS and Changeset queries
--------------------------+-----------------------------
 Reporter:  dlh           |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Customize     |    Version:  4.7
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The `update_term_meta_cache` parameter is passed to `WP_Query` in
 `wp_get_custom_css_post()` and
 `WP_Customize_Manager::find_changeset_post_id()`. As far as I can tell,
 `update_term_meta_cache` is allowed in only `WP_Term_Query` and isn't
 handled by `WP_Query`.

 The attached patch would swap in `'update_post_term_cache' => false` and
 `'lazy_load_term_meta' => false` based on the inference that neither query
 is supposed to cause side-effects with terms or term meta.

 (Side note: Two tests in `Tests_Query_MetaQuery` also pass
 `update_term_meta_cache` to `WP_Query`. I've attached a second patch for
 those, if a fix is warranted.)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39194>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list