restore autoloader as constant requirement
This commit is contained in:
parent
c9bba7a606
commit
a7dbb5b297
1 changed files with 2 additions and 9 deletions
|
@ -17,12 +17,5 @@ require_once( WP_RDNYC_DIR . '/custom-functions.php' );
|
||||||
/**
|
/**
|
||||||
* Autoloader for browersync
|
* Autoloader for browersync
|
||||||
*/
|
*/
|
||||||
if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) {
|
require_once( WP_RDNYC_DIR . '/vendor/autoload.php' );
|
||||||
require_once( WP_RDNYC_DIR . '/vendor/autoload.php' );
|
\A7\autoload( __DIR__ . '/src' );
|
||||||
\A7\autoload( __DIR__ . '/src' );
|
|
||||||
} else {
|
|
||||||
require_once( WP_RDNYC_DIR . '/src/classes.php' );
|
|
||||||
require_once( WP_RDNYC_DIR . '/src/enqueue.php' );
|
|
||||||
require_once( WP_RDNYC_DIR . '/src/setup.php' );
|
|
||||||
require_once( WP_RDNYC_DIR . '/src/sidebars.php' );
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue