Make WordPress Core


Ignore:
Timestamp:
05/12/2009 06:38:59 AM (16 years ago)
Author:
azaozz
Message:

Add filter: the post content "more link", props JohnLamansky, fixes #9711

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r11204 r11300  
    221221    if ( count($content) > 1 ) {
    222222        if ( $more ) {
    223             $output .= '<span id="more-'.$id.'"></span>'.$content[1];
     223            $output .= '<span id="more-' . $id . '"></span>' . $content[1];
    224224        } else {
    225225            $output = balanceTags($output);
    226226            if ( ! empty($more_link_text) )
    227                 $output .= ' <a href="'. get_permalink() . "#more-$id\" class=\"more-link\">$more_link_text</a>";
     227                $output .= apply_filters( 'the_content_more_link', ' <a href="' . get_permalink() . "#more-$id\" class=\"more-link\">$more_link_text</a>", $more_link_text );
    228228        }
    229229
Note: See TracChangeset for help on using the changeset viewer.