--- post-template.orig.php Mon Aug 6 14:36:43 2007
+++ post-template.php Wed Aug 8 09:38:51 2007
@@ -50,15 +50,15 @@
return apply_filters('get_the_guid', $post->guid);
}
-function the_content($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') {
- $content = get_the_content($more_link_text, $stripteaser, $more_file);
+function the_content($more_link_text = '(more...)', $stripteaser = 0, $more_file = '', $force_full_text = false) {
+ $content = get_the_content($more_link_text, $stripteaser, $more_file, $force_full_text);
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
echo $content;
}
-function get_the_content($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') {
+function get_the_content($more_link_text = '(more...)', $stripteaser = 0, $more_file = '', $force_full_text = false) {
global $id, $post, $more, $single, $withcomments, $page, $pages, $multipage, $numpages;
global $preview;
global $pagenow;
@@ -80,7 +80,7 @@
$page = count($pages); // give them the highest numbered page that DOES exist
$content = $pages[$page-1];
- if ( preg_match('//', $content, $matches) ) {
+ if ( !$force_full_text && preg_match('//', $content, $matches) ) {
$content = explode($matches[0], $content, 2);
if ( !empty($matches[1]) && !empty($more_link_text) )
$more_link_text = strip_tags(wp_kses_no_null(trim($matches[1])));
--- feed.orig.php Mon Aug 6 14:41:14 2007
+++ feed.php Mon Aug 6 14:41:16 2007
@@ -34,7 +34,7 @@
function the_content_rss($more_link_text='(more...)', $stripteaser=0, $more_file='', $cut = 0, $encode_html = 0) {
- $content = get_the_content($more_link_text, $stripteaser, $more_file);
+ $content = get_the_content($more_link_text, $stripteaser, $more_file, true);
$content = apply_filters('the_content_rss', $content);
if ( $cut && !$encode_html )
$encode_html = 2;
--- feed-atom.orig.php Mon Aug 6 14:41:22 2007
+++ feed-atom.php Wed Aug 8 09:36:33 2007
@@ -36,7 +36,7 @@
]]>
- ]]>
+ ]]>
--- feed-rss2.orig.php Wed Aug 8 09:39:54 2007
+++ feed-rss2.php Wed Aug 8 09:40:35 2007
@@ -36,7 +36,7 @@
]]>
post_content ) > 0 ) : ?>
- ]]>
+ ]]>
]]>