mirror of
https://github.com/10h30/wp-strava.git
synced 2026-06-05 15:10:01 +09:00
Moved code to src directory
This commit is contained in:
@@ -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
@@ -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
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user