Permalink
Browse files

Use post_type_archive_title() on post type archives in the trail.

  • Loading branch information...
1 parent 1c55da3 commit d5117c1ec4e77dcd220b73647254c6fbb2bee60f @justintadlock committed Sep 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 extensions/breadcrumb-trail.php
@@ -272,7 +272,7 @@ function breadcrumb_trail_get_items( $args = array() ) {
$trail = array_merge( $trail, breadcrumb_trail_get_parents( '', $path ) );
/* Add the post type [plural] name to the trail end. */
- $trail[] = $post_type_object->labels->name;
+ $trail[] = post_type_archive_title( '', false );
}
/* If viewing an author archive. */

0 comments on commit d5117c1

Please sign in to comment.