equal
deleted
inserted
replaced
42 * Prevent the Customizer from being loaded on WordPress versions prior to 3.6. |
42 * Prevent the Customizer from being loaded on WordPress versions prior to 3.6. |
43 * |
43 * |
44 * @since Twenty Thirteen 1.0 |
44 * @since Twenty Thirteen 1.0 |
45 */ |
45 */ |
46 function twentythirteen_customize() { |
46 function twentythirteen_customize() { |
47 wp_die( sprintf( __( 'Twenty Thirteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentythirteen' ), $GLOBALS['wp_version'] ), '', array( |
47 wp_die( |
48 'back_link' => true, |
48 sprintf( __( 'Twenty Thirteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentythirteen' ), $GLOBALS['wp_version'] ), '', array( |
49 ) ); |
49 'back_link' => true, |
|
50 ) |
|
51 ); |
50 } |
52 } |
51 add_action( 'load-customize.php', 'twentythirteen_customize' ); |
53 add_action( 'load-customize.php', 'twentythirteen_customize' ); |
52 |
54 |
53 /** |
55 /** |
54 * Prevent the Theme Preview from being loaded on WordPress versions prior to 3.4. |
56 * Prevent the Theme Preview from being loaded on WordPress versions prior to 3.4. |