Skip to content

Commit 377e7ec

Browse files
author
Cosmin
committed
https://themes.trac.wordpress.org/ticket/36434#comment:5
1 parent 0322731 commit 377e7ec

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

inc/class-shapely-related-posts.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ public function get_related_posts( $post_id, $number_posts = - 1 ) {
120120

121121
// reset post query
122122
wp_reset_postdata();
123-
wp_reset_query();
124123

125124
return $related_postquery;
126125
}
@@ -209,8 +208,7 @@ function output_related_posts() {
209208

210209
echo '</div><!--/.owlCarousel-->';
211210
echo '</div><!--/.mt-related-posts-->';
212-
213-
wp_reset_query();
211+
214212
wp_reset_postdata();
215213
}
216214
}

inc/extras.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ class="<?php echo $breadcrumbs_enabled ? 'col-md-6 col-sm-6 col-xs-12' : 'col-xs
648648
<h3 class="page-title" <?php echo $header_color ? 'style="color:#' . esc_attr( $header_color ) . '"' : '' ?>>
649649
<?php
650650
if ( is_home() ) {
651-
_e( ( get_theme_mod( 'blog_name' ) ) ? get_theme_mod( 'blog_name' ) : 'Blog', 'shapely' );
651+
echo esc_html( get_theme_mod( 'blog_name' ) ? get_theme_mod( 'blog_name' ) : __( 'Blog', 'shapely' ) );
652652
} else if ( is_search() ) {
653653
_e( 'Search', 'shapely' );
654654
} else if ( is_archive() ) {

0 commit comments

Comments
 (0)