[wp-trac] [WordPress Trac] #36600: Selective refresh finds selected selector throughout the whole theme/site.

WordPress Trac noreply at wordpress.org
Wed Apr 20 18:10:43 UTC 2016


#36600: Selective refresh finds selected selector throughout the whole theme/site.
-------------------------------+------------------------------
 Reporter:  helloguna1         |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Customize          |     Version:  4.5
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:  javascript
-------------------------------+------------------------------
Changes (by westonruter):

 * keywords:   => reporter-feedback


Comment:

 @helloguna1 Welcome to Trac.

 You should make sure the selector is as specific as possible to avoid
 refreshing items unnecessarily. If you only want the partial to be on the
 homepage, then conditionally add it if `! is_front_page()`.

 It's hard to understand exactly what is going on with your example without
 seeing it. If you have a screencast that depicted the problem, that would
 be best.

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


More information about the wp-trac mailing list