Skip to content

Commit

Permalink
Fix auto loader bug
Browse files Browse the repository at this point in the history
  • Loading branch information
inc2734 committed Oct 13, 2016
1 parent 6dcd786 commit 40b0752
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand All @@ -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 );
}
} );

Expand Down
2 changes: 1 addition & 1 deletion views/content/content-summary--media.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @license GPL-2.0+
*/
?>
<section <?php post_class( ['_p-entry-summary', '_p-entry-summary--media'] ); ?>>
<section <?php post_class( [ '_p-entry-summary', '_p-entry-summary--media' ] ); ?>>
<?php $thumbnail_url = wp_get_attachment_image_url( get_post_thumbnail_id(), 'medium' ); ?>
<div class="_p-entry-summary__figure"
<?php if ( $thumbnail_url ) : ?>
Expand Down
2 changes: 1 addition & 1 deletion views/content/content-summary.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @license GPL-2.0+
*/
?>
<section <?php post_class( ['_p-entry-summary'] ); ?>>
<section <?php post_class( [ '_p-entry-summary' ] ); ?>>
<div class="_p-entry-summary__body">
<h1 class="_p-entry-summary__title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
<?php get_template_part( 'template-parts/entry-meta' ); ?>
Expand Down

0 comments on commit 40b0752

Please sign in to comment.