Skip to content

Commit

Permalink
Use argument swapping friendly sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
aprea committed May 16, 2014
1 parent 418d69a commit abd90d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class/advanced-excerpt.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ function text_excerpt( $text, $length, $length_type, $finish ) {

public function text_add_more( $text, $ellipsis, $read_more ) {
if ( $read_more ) {
$link_template = apply_filters( 'advanced_excerpt_read_more_link_template', ' <a href="%s" class="read-more">%s</a>', get_permalink(), $read_more );
$link_template = apply_filters( 'advanced_excerpt_read_more_link_template', ' <a href="%1$s" class="read-more">%2$s</a>', get_permalink(), $read_more );
$ellipsis .= sprintf( $link_template, get_permalink(), $read_more );
}

Expand Down

0 comments on commit abd90d7

Please sign in to comment.