src/wp-includes/class-wp-customize-nav-menus.php 1 location
|
@@ 990-998 (lines=9) @@
|
| 987 |
|
* @since 4.3.0 |
| 988 |
|
* @access public |
| 989 |
|
*/ |
| 990 |
|
public function customize_preview_enqueue_deps() { |
| 991 |
|
if ( isset( $this->manager->selective_refresh ) ) { |
| 992 |
|
$script = wp_scripts()->registered['customize-preview-nav-menus']; |
| 993 |
|
$script->deps[] = 'customize-selective-refresh'; |
| 994 |
|
} |
| 995 |
|
|
| 996 |
|
wp_enqueue_script( 'customize-preview-nav-menus' ); // Note that we have overridden this. |
| 997 |
|
wp_enqueue_style( 'customize-preview' ); |
| 998 |
|
} |
| 999 |
|
|
| 1000 |
|
/** |
| 1001 |
|
* Exports data from PHP to JS. |
src/wp-includes/class-wp-customize-widgets.php 1 location
|
@@ 1526-1534 (lines=9) @@
|
| 1523 |
|
* @since 4.5.0 |
| 1524 |
|
* @access public |
| 1525 |
|
*/ |
| 1526 |
|
public function customize_preview_enqueue_deps() { |
| 1527 |
|
if ( isset( $this->manager->selective_refresh ) ) { |
| 1528 |
|
$script = wp_scripts()->registered['customize-preview-widgets']; |
| 1529 |
|
$script->deps[] = 'customize-selective-refresh'; |
| 1530 |
|
} |
| 1531 |
|
|
| 1532 |
|
wp_enqueue_script( 'customize-preview-widgets' ); |
| 1533 |
|
wp_enqueue_style( 'customize-preview' ); |
| 1534 |
|
} |
| 1535 |
|
|
| 1536 |
|
/** |
| 1537 |
|
* Inject selective refresh data attributes into widget container elements. |