-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfunctions.php
30 lines (28 loc) · 918 Bytes
/
functions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/**
* Theme functions.
*
* This file is used to load the autoload and bootstrap files necessary
* for kick-starting the theme.
*
* @package Uuups
*/
/**
* Compatibility check.
*
* Check that the site meets the minimum requirements for the theme before
* proceeding if this is a theme for public release. If building for a client
* that meets these requirements, this code is unnecessary.
*/
if ( version_compare( $GLOBALS['wp_version'], '4.9', '<' ) || version_compare( PHP_VERSION, '5.6', '<' ) ) {
require_once get_parent_theme_file_path( 'app/bootstrap-compat.php' );
return;
}
/**
* Bootstrap the theme.
*
* Load the bootstrap files. Note that autoloading should happen first so that
* any classes/functions are available that we might need.
*/
require_once get_parent_theme_file_path( 'app/bootstrap-autoload.php' );
require_once get_parent_theme_file_path( 'app/bootstrap-app.php' );