Skip to content

Commit

Permalink
Merge pull request #8 from player0k/master
Browse files Browse the repository at this point in the history
fix #1688
  • Loading branch information
moldcraft authored Jul 8, 2016
2 parents 1d5c03f + c95747e commit dfe645c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
20 changes: 5 additions & 15 deletions includes/class-breadcrumbs-builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,21 +129,11 @@ private function build_breadcrumbs() {
} elseif ( is_front_page() ) {
} elseif ( is_home() ) {

$blog = array();

$page_for_posts = get_option( 'page_for_posts' );
if ( get_option( 'show_on_front' ) == 'page' && ! empty( $page_for_posts ) ) {
$post = get_post( $page_for_posts );
$blog['name'] = $post->the_title;
$blog['url'] = get_permalink($post->ID);
$blog['type'] = 'posts_page';
} else {
$blog = array(
'name' => $this->settings['labels']['blogpage-title'],
'url' => fw_current_url(),
'type' => 'front_page'
);
}
$blog = array(
'name' => $this->settings['labels']['blogpage-title'],
'url' => fw_current_url(),
'type' => 'front_page'
);

$return[] = $blog;
} elseif ( is_page() ) {
Expand Down
2 changes: 1 addition & 1 deletion settings-options.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
'label' => __( 'Text for Blog Page', 'fw' ),
'desc' => __( 'The blog page anchor will have this text. In case homepage will be set as blog page, will be taken the homepage text', 'fw' ),
'type' => 'text',
'value' => $default_values['homepage-title']
'value' => $default_values['blogpage-title']
),
'404-title' => array(
'label' => __( 'Text for 404 Page', 'fw' ),
Expand Down

0 comments on commit dfe645c

Please sign in to comment.