diff --git src/wp-includes/js/customize-selective-refresh.js src/wp-includes/js/customize-selective-refresh.js
index d3b81db6d7..4f7165656a 100644
|
|
|
wp.customize.selectiveRefresh = ( function( $, api ) { |
| 849 | 849 | containerElements = containerElements.add( rootElement ); |
| 850 | 850 | } |
| 851 | 851 | containerElements.each( function() { |
| 852 | | var containerElement = $( this ), partial, id, Constructor, partialOptions, containerContext; |
| | 852 | var containerElement = $( this ), partial, placement, id, Constructor, partialOptions, containerContext; |
| 853 | 853 | id = containerElement.data( 'customize-partial-id' ); |
| 854 | 854 | if ( ! id ) { |
| 855 | 855 | return; |
| … |
… |
wp.customize.selectiveRefresh = ( function( $, api ) { |
| 874 | 874 | */ |
| 875 | 875 | if ( options.triggerRendered && ! containerElement.data( 'customize-partial-content-rendered' ) ) { |
| 876 | 876 | |
| 877 | | /** |
| 878 | | * Announce when a partial's nested placement has been re-rendered. |
| 879 | | */ |
| 880 | | self.trigger( 'partial-content-rendered', new Placement( { |
| | 877 | placement = new Placement( { |
| 881 | 878 | partial: partial, |
| 882 | 879 | context: containerContext, |
| 883 | 880 | container: containerElement |
| 884 | | } ) ); |
| | 881 | } ); |
| | 882 | |
| | 883 | $( placement.container ).attr( 'title', self.data.l10n.shiftClickToEdit ); |
| | 884 | partial.createEditShortcutForPlacement( placement ); |
| | 885 | |
| | 886 | /** |
| | 887 | * Announce when a partial's nested placement has been re-rendered. |
| | 888 | */ |
| | 889 | self.trigger( 'partial-content-rendered', placement ); |
| 885 | 890 | } |
| 886 | 891 | containerElement.data( 'customize-partial-content-rendered', true ); |
| 887 | 892 | } ); |