Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Commit

Permalink
Fixed #58 Do not rely on global $post
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiuvertistudio committed Jun 7, 2016
1 parent 3da01c0 commit 4be10e5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,7 @@ function zillah_customizer_script() {


function zillah_excerpt_more($more) {
global $post;

return '<span class="clearfix clearfix-post"></span><a href="'. esc_url( get_permalink($post->ID) ) . '" class="more-link">' . sprintf( __( 'Continue Reading %s', 'zillah' ), the_title( '<span class="screen-reader-text">"', '"</span>', false ) . ' <span class="meta-nav">&rarr;</span>' ) . '</a>';
return '<span class="clearfix clearfix-post"></span><a href="'. esc_url( get_permalink(get_the_ID()) ) . '" class="more-link">' . sprintf( __( 'Continue Reading %s', 'zillah' ), the_title( '<span class="screen-reader-text">"', '"</span>', false ) . ' <span class="meta-nav">&rarr;</span>' ) . '</a>';
}
add_filter('excerpt_more', 'zillah_excerpt_more');

Expand Down

0 comments on commit 4be10e5

Please sign in to comment.