Skip to content

Instantly share code, notes, and snippets.

@takatoshi
Created June 11, 2012 19:58
Show Gist options
  • Save takatoshi/2912296 to your computer and use it in GitHub Desktop.
Save takatoshi/2912296 to your computer and use it in GitHub Desktop.
//変更前
if ( $more ) {
//217行目
$output .= '<span id="more-' . $post->ID . '"></span>' . $content[1];
} else {
if ( ! empty($more_link_text) )
//220行目
$output .= apply_filters( 'the_content_more_link', ' <a href="' . get_permalink() . "#more-{$post->ID}\" class=\"more-link\">$more_link_text</a>", $more_link_text );
$output = force_balance_tags($output);
}
//変更後
if ( $more ) {
$output .= '<span id="more-' . $post->ID . '" class="more"></span>' . $content[1];
} else {
if ( ! empty($more_link_text) )
$output .= apply_filters( 'the_content_more_link', ' <div class="more-link"><a href="' . get_permalink() . "#more-{$post->ID}\" class=\"more-link\">$more_link_text</a></div>", $more_link_text );
$output = force_balance_tags($output);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment