Changeset 208119
- Timestamp:
- 02/19/2010 10:08:24 PM (16 years ago)
- File:
-
- 1 edited
-
striptease/trunk/striptease.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
striptease/trunk/striptease.php
r85672 r208119 31 31 */ 32 32 33 function hb_striptease($the_content) { 34 35 global $id, $permalink; 36 37 $teaser = preg_quote("$permalink#more-$id", '/'); 38 $the_content = preg_replace("/$teaser/", $permalink, $the_content); 39 40 return $the_content; 41 33 function striptease_more_link( $more_link ) { 34 global $id; 35 return str_replace( "#more-$id", '', $more_link ); 42 36 } 43 44 add_filter('the_content', 'hb_striptease'); 37 add_filter( 'the_content_more_link', 'striptease_more_link' ); 45 38 46 39 ?>
Note: See TracChangeset
for help on using the changeset viewer.