fixing the undefined variable debugging error

This commit is contained in:
koenemann 2016-01-08 14:03:57 +01:00
parent d8f31a0052
commit dc15fe59b6
1 changed files with 1 additions and 1 deletions

View File

@ -95,6 +95,6 @@ add_filter( 'excerpt_more', 'custom_excerpt_more' );
function all_excerpts_get_more_link($post_excerpt) {
return $post_excerpt . ' [...]<p><a class="btn btn-default understrap-read-more-link" href="'. get_permalink($post->ID) . '">' . __('Read More...', 'understrap') . '</a></p>';
return $post_excerpt . ' [...]<p><a class="btn btn-default understrap-read-more-link" href="'. get_permalink( get_the_ID() ) . '">' . __('Read More...', 'understrap') . '</a></p>';
}
add_filter('wp_trim_excerpt', 'all_excerpts_get_more_link');