Created
October 3, 2016 14:17
-
-
Save atsea/85694fc8e38fe17d40021e7f61660288 to your computer and use it in GitHub Desktop.
WP: default WP Version conditional
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Twenty Fifteen only works in WordPress 4.1 or later. | |
*/ | |
if ( version_compare( $GLOBALS['wp_version'], '4.1-alpha', '<' ) ) { | |
require get_template_directory() . '/inc/back-compat.php'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment