Skip to content

Instantly share code, notes, and snippets.

@jennimckinnon
Created May 24, 2017 10:03
Show Gist options
  • Save jennimckinnon/b8dff7307ac9e07e035d58997d77e608 to your computer and use it in GitHub Desktop.
Save jennimckinnon/b8dff7307ac9e07e035d58997d77e608 to your computer and use it in GitHub Desktop.
<?php
if ( version_compare( $GLOBALS['wp_version'], '4.7-alpha', '<' ) ) {
require get_template_directory() . '/inc/back-compat.php';
return;
}
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* Note that this function is hooked into the after_setup_theme hook, which
* runs before the init hook. The init hook is too late for some features, such
* as indicating support for post thumbnails.
*/
function twentyseventeen_setup() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment