Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use single_post_title() to get the post title on single posts rather …

…than get_the_title() within the breadcrumb trail. Custom queries can overwrite this. We should rely on the main queried object.

git-svn-id: http://svn.locallylost.com/themes/hybrid-core/trunk@951 dba0f204-706d-4bc1-bc29-8b92e0485636
  • Loading branch information...
commit 3a9d2d29e53366047da6eefe72bc00465df414c5 1 parent 4ea1316
greenshady authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 extensions/breadcrumb-trail.php
View
4 extensions/breadcrumb-trail.php
@@ -1,7 +1,5 @@
<?php
/**
- * @todo - http://themehybrid.com/support/topic/breadcrumbs-grab-wrong-title?replies=5#post-65071
- *
* Breadcrumb Trail - A breadcrumb menu script for WordPress.
*
* Breadcrumb Trail is a script for showing a breadcrumb trail for any type of page. It tries to anticipate
@@ -212,7 +210,7 @@ function breadcrumb_trail_get_items( $args = array() ) {
$trail[] = $terms;
/* End with the post title. */
- $post_title = get_the_title();
+ $post_title = single_post_title( '', false );
if ( !empty( $post_title ) )
$trail['trail_end'] = $post_title;
}
Please sign in to comment.
Something went wrong with that request. Please try again.