[wp-trac] [WordPress Trac] #35855: DRY up checking for selective refresh support in WP_Customize_Manager

WordPress Trac noreply at wordpress.org
Thu Feb 18 06:15:26 UTC 2016


#35855: DRY up checking for selective refresh support in WP_Customize_Manager
--------------------------+--------------------------
 Reporter:  DrewAPicture  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  4.5
Component:  Customize     |    Version:
 Severity:  normal        |   Keywords:  dev-feedback
  Focuses:                |
--------------------------+--------------------------
 The working ticket for the [https://make.wordpress.org/core/2016/02/16
 /selective-refresh-in-the-customizer/ proposed] Selective Refresh feature
 for the Customizer is #27355, where, once merged, a bunch of WET code will
 be merged that checks for selective refresh support.

 Namely, `isset( $this->manager->selective_refresh )` is used to choose
 between the 'postMessage' and 'refresh' transports in a bunch of different
 places.

 In speaking with @westonruter, seems like a
 `WP_Customize_Manager::is_selective_refresh_enabled()` method or similar
 might be in order. I opted to create this ticket for discussion so as not
 to hold up the pending merge.

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


More information about the wp-trac mailing list