Changeset 40022
- Timestamp:
- 01/27/2017 08:30:34 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/functions.php
r39226 r40022 546 546 require get_template_directory() . '/inc/featured-content.php'; 547 547 } 548 549 /** 550 * Add an `is_customize_preview` function if it is missing. 551 * 552 * Enables installing Twenty Fourteen in WordPress versions before 4.0.0 when the 553 * `is_customize_preview` function was introduced. 554 */ 555 if ( ! function_exists( 'is_customize_preview' ) ) : 556 function is_customize_preview() { 557 global $wp_customize; 558 559 return ( $wp_customize instanceof WP_Customize_Manager ) && $wp_customize->is_preview(); 560 } 561 endif;
Note: See TracChangeset
for help on using the changeset viewer.