WordPress.org

Make WordPress Core

Ticket #23509: 23509.diff

File 23509.diff, 561 bytes (added by sammybeats, 2 years ago)
  • wp-includes/theme.php

     
    17301730                }()); 
    17311731        </script> 
    17321732        <?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 */ 
     1741function 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(); 
    17331748} 
     1749 No newline at end of file