[wp-testers] WordPress 3.0: problem with empty excerptsbeingreturned by the_excerpt()

Krusty Ruffle krustyruffle at rustykruffle.com
Sun Jul 11 22:44:27 UTC 2010


If I add this to the end of my themes functions.php then the excerpt pages
work correctly...

add_filter('get_the_excerpt', 'test_excerpt', 1);
function test_excerpt($text){
    return trim($text);
}

This leads me to believe that something, maybe the post updating function,
is leaving a bit of whitespace somewhere.

Hope that helps.

On Sun, Jul 11, 2010 at 6:16 PM, Administrator <
rontekadmin at hawaiisportsrap.com> wrote:

> Sounds like that the update post function on post editting is not resetting
> the value.  I think Darren's code will "loop around" and re-check to see if
> the excerpt has 55 characters or less....if not then it will not display the
> excerpts box.  If so it resets to display the excerpt.
>
> I'll test that as well on my local server and see if I can duplicate the
> problem for you.  Got a sneaking suspicion that I wanna test before saying
> what I'm thinking.
>
>
> ----- Original Message ----- From: "Krusty Ruffle" <
> krustyruffle at rustykruffle.com>
> To: <wp-testers at lists.automattic.com>
> Sent: Sunday, July 11, 2010 10:42 AM
> Subject: Re: [wp-testers] WordPress 3.0: problem with empty
> excerptsbeingreturned by the_excerpt()
>
>
>  Okay, I start a post, fill in excerpt, save draft, delete excerpt, then
>> publish post, look at category archives and the post has an excerpt...
>>
>> Apparently this only effects posts that have been published then had the
>> excerpt removed.
>>
>> I'll give Darren's code a try after a bit, I had some vague ideas
>> involving
>> filtering that I want to look into also. Hopefully I can track down
>> something helpfull and post back some results.
>>
>> Thanks for the help folks, it is greatly appreciated!
>>
>> On Sun, Jul 11, 2010 at 3:18 PM, Administrator <
>> rontekadmin at hawaiisportsrap.com> wrote:
>>
>>> -- snip --<
>>>
>>
>>
>>  May I suggest to lock down where that is for the code junkies that you
>>> create a new post, create an except and save to draft.  Edit and remove
>>> the
>>> excerpt then publish.  If a blank excerpt box comes up then the variable
>>> must not be getting reset in the posting functions.  Darren just sent you
>>> some code that may "fix" the problem"  Looks like the code says if the
>>> string length of the excerpt is 55 or less then don't display.  Anyway,
>>> hoped this helped.
>>>
>>>
>>  -- snip --<
>>>
>> _______________________________________________
>>
>> wp-testers mailing list
>> wp-testers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-testers
>>
>>
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>


More information about the wp-testers mailing list