restore autoloader as constant requirement

This commit is contained in:
Adam Piontek 2021-08-04 11:15:05 -04:00
parent c9bba7a606
commit a7dbb5b297

View file

@ -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' );
}