#777 closed defect (bug) (fixed)
Paragraphs not added
Reported by: | anonymousbugger | Owned by: | ryan |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | major | Version: | 1.5 |
Component: | Administration | Keywords: | |
Focuses: | Cc: |
Description
Paragraph tags are not added for plain-text entries. This messes up the output and leaves entire entries as a single paragraph.
They were being created before 1.5-beta-1 2005-02-01.
No other plugins are being used.
Attachments (1)
Change History (14)
#3
@
20 years ago
confirmed now: wpauto is NOT being called in the filter list. I've not confirmed what other filters are being called or not. Plugins seem to be working.
tested this by editing the content()
$content = get_the_content($more_link_text, $stripteaser, $more_file);
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
echo $content;
becomes this:
$content = get_the_content($more_link_text, $stripteaser, $more_file);
$content = apply_filters('the_content', $content);
$content = wpautop($content);
$content = str_replace(']]>', ']]>', $content);
echo $content;
and it works fine. Obviously some flaw in the filters. This, of course, NOT a patch. Its a stopgap test measure.
#4
@
20 years ago
confirmed that no filters for "the_content" are being applied. Does not convert smileys or special characters.
Obviously this is pretty serious.
#5
@
20 years ago
I am seeing the same thing here, on a site run directly out of CVS. Reverting to "yesterday" removes the formatting problem:
cvs up -D yesterday
So clearly this was caused by one of the (many) recent changes. Will see if I cannot narrow the time window down some...
#6
@
20 years ago
The problem was introduced between 6:20am and 6:25am GMT. You can see the changes in that time with:
cvs diff -D '2/1 6:20am GMT' -D '2/1 6:25am GMT'
Presumably the change in wp-includes/functions.php are the cause.
#7
@
20 years ago
I believe in the function apply_filters(), $args needs to be set within the innermost foreach(), otherwise the $string modified by each filter function won't be passed to subsequent filter functions.
A quick test seemed to suggest the attached patch -- applyfilters_functions.diff, run against wp-includes/functions.php v1.246 -- fixes the problem.
#8
@
20 years ago
- Owner changed from anonymous to rboren
- Patch changed from No to Yes
- Status changed from new to assigned
#9
@
20 years ago
- fixed_in_version set to 1.5
- Resolution changed from 10 to 20
- Status changed from assigned to closed
from hacking around with the code it apears that wpautop() isn't being called.
I changed the function to output just "beans".. gues what? No beans.