Permalink
Browse files

Add missing "labels->".

  • Loading branch information...
1 parent f44d22a commit c92ce44795525ec14944a637d78f77258a694081 @justintadlock committed Sep 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 extensions/breadcrumb-trail.php
@@ -261,7 +261,7 @@ function breadcrumb_trail_get_items( $args = array() ) {
$post_type_object = array_shift( $post_types );
/* Add support for a non-standard label of 'archive_title' (special use case). */
- $label = !empty( $post_type_object->labels->archive_title ) ? $post_type_object->labels->archive_title : $post_type_object->name;
+ $label = !empty( $post_type_object->labels->archive_title ) ? $post_type_object->labels->archive_title : $post_type_object->labels->name;
$trail[] = '<a href="' . get_post_type_archive_link( $post_type_object->name ) . '" title="' . esc_attr( $label ) . '">' . $label . '</a>';
}

0 comments on commit c92ce44

Please sign in to comment.