From 40b075246115f184d2cc24ad90e4262dfa7e8fbe Mon Sep 17 00:00:00 2001 From: Takashi Kitajima Date: Thu, 13 Oct 2016 14:42:51 +0900 Subject: [PATCH] Fix auto loader bug --- functions.php | 4 ++-- views/content/content-summary--media.php | 2 +- views/content/content-summary.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/functions.php b/functions.php index 81015fde..ae6b3475 100644 --- a/functions.php +++ b/functions.php @@ -15,7 +15,7 @@ /** * Loads the auto loader */ -include_once( get_template_directory() . '/vendor/autoload.php' ); +//include_once( get_template_directory() . '/vendor/autoload.php' ); spl_autoload_register( function ( $class ) { $slug = preg_replace( '/^\\Mimizuku/', '', $class ); $slug = str_replace( '\\', '/', $slug ); @@ -24,7 +24,7 @@ $slug = trim( $slug, '/' ); $path = get_template_directory() . '/' . $slug . '.php'; if ( file_exists( $path ) ) { - include_once( get_template_directory() . '/' . $path . '.php' ); + include_once( $path ); } } ); diff --git a/views/content/content-summary--media.php b/views/content/content-summary--media.php index 1d95734c..85ab26ad 100644 --- a/views/content/content-summary--media.php +++ b/views/content/content-summary--media.php @@ -5,7 +5,7 @@ * @license GPL-2.0+ */ ?> -
> +
>
diff --git a/views/content/content-summary.php b/views/content/content-summary.php index cd98c806..5aa9dfec 100644 --- a/views/content/content-summary.php +++ b/views/content/content-summary.php @@ -5,7 +5,7 @@ * @license GPL-2.0+ */ ?> -
> +
>