Ticket #23509: 23509.diff
File 23509.diff, 561 bytes (added by , 11 years ago) |
---|
-
wp-includes/theme.php
1730 1730 }()); 1731 1731 </script> 1732 1732 <?php 1733 } 1734 1735 /** 1736 * Returns true if the site is being previewed in customizer 1737 * 1738 * @since 3.6.0 1739 * @return bool 1740 */ 1741 function is_customizer(){ 1742 global $wp_customize; 1743 1744 if ( ! is_a( $wp_customize, 'WP_Customize_Manager' ) ) 1745 return false; 1746 1747 return $wp_customize->is_preview(); 1733 1748 } 1749 No newline at end of file