Skip to content

Instantly share code, notes, and snippets.

@atsea
Created October 3, 2016 14:17
Show Gist options
  • Save atsea/85694fc8e38fe17d40021e7f61660288 to your computer and use it in GitHub Desktop.
Save atsea/85694fc8e38fe17d40021e7f61660288 to your computer and use it in GitHub Desktop.
WP: default WP Version conditional
/**
* 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