Make WordPress Core


Ignore:
Timestamp:
03/28/2013 06:45:56 AM (12 years ago)
Author:
lancewillett
Message:

Twenty Thirteen: better back compat handling by moving version compare before the include to avoid loading the file altogether. Also prevent Customizer views. Props obenland, closes #23819.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentythirteen/functions.php

    r23816 r23837  
    597597 * Adds back compat handling for WP versions pre-3.6.
    598598 */
    599 require( get_template_directory() . '/inc/back-compat.php' );
     599if ( version_compare( $GLOBALS['wp_version'], '3.6-alpha', '<' ) )
     600    require( get_template_directory() . '/inc/back-compat.php' );
Note: See TracChangeset for help on using the changeset viewer.