Moved code to src directory

This commit is contained in:
Justin Foell
2020-01-31 11:51:37 -06:00
parent a73ec38ed3
commit 4c5198fa1c
27 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ function wpstrava_autoload_classes( $class_name ) {
}
// @TODO Add directory searching if they get created.
$file = WPSTRAVA_PLUGIN_DIR . '/includes/' . implode( '/', $parts ) . '.php';
$file = WPSTRAVA_PLUGIN_DIR . '/src/' . implode( '/', $parts ) . '.php';
if ( file_exists( $file ) ) {
include_once $file;
}
+1 -1
View File
@@ -4,7 +4,7 @@ if ( ! defined( 'WPSTRAVA_PLUGIN_DIR' ) ) {
define( 'WPSTRAVA_PLUGIN_DIR', dirname( __FILE__ ) . '/../' );
}
require_once dirname( __FILE__ ) . '/../includes/autoload.php';
require_once dirname( __FILE__ ) . '/../src/autoload.php';
require_once dirname( __FILE__ ) . '/../vendor/autoload.php';
WP_Mock::bootstrap();
+1 -1
View File
@@ -36,7 +36,7 @@ if ( ! defined( 'WPSTRAVA_DEBUG' ) ) {
define( 'WPSTRAVA_DEBUG', false );
}
require_once WPSTRAVA_PLUGIN_DIR . 'includes/autoload.php';
require_once WPSTRAVA_PLUGIN_DIR . 'src/autoload.php';
// Load the plugin and multilingual support.
function wpstrava_plugin_loaded() {