Dear MR, Please asistance on this
Thanks On Mon, Jul 12, 2010 at 8:00 PM, <[email protected]>wrote: > Send wp-testers mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.automattic.com/mailman/listinfo/wp-testers > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of wp-testers digest..." > > > Today's Topics: > > 1. Re: WordPress 3.0: problem with empty excerptsbeingreturned > by the_excerpt() (Krusty Ruffle) > 2. Re: WordPress 3.0: problem with empty excerptsbeingreturned > by the_excerpt() (Kathy Pop) > 3. Re: WordPress 3.0: problem with empty excerptsbeingreturned > by the_excerpt() (Krusty Ruffle) > 4. test (CLAY RANYUN) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 11 Jul 2010 19:14:06 -0400 > From: Krusty Ruffle <[email protected]> > Subject: Re: [wp-testers] WordPress 3.0: problem with empty > excerptsbeingreturned by the_excerpt() > To: [email protected] > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > Okay, here is what's happening: > > I'm testing stuff so I'm inserting text with a firefox lipsum extension, it > leaves trailing newlines after inserting text. If you select the text in > the > excerpt input on the edit post page and miss the newline it will cause > empty > strings to be returned in pages that use excerpts, if you update it a > second > time the problem will be fixed. > > I think it's trimming the excerpt text when it sets the value for the input > in the edit page, but I'm guessing it doesn't when it saves the data on > update. At any rate I know what causes the problem and can now avoid it in > several ways, if my skills were more advanced I would try to track it down, > submit a bug report, make a patch and all that stuff. Unfortunately I am a > very amateur PHP hacker type so I'll have to leave it at that and hope that > this thread does some good for someone somewhere along the line. > > Thanks again for the help and suggestions, if there's anything more I can > do > I'd be more than glad to try! > > > ------------------------------ > > Message: 2 > Date: Sun, 11 Jul 2010 19:00:08 -0500 > From: Kathy Pop <[email protected]> > Subject: Re: [wp-testers] WordPress 3.0: problem with empty > excerptsbeingreturned by the_excerpt() > To: [email protected] > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > Hi, > > I just solved it by installing the plugin, excerpts editor. I have a PHP > programmer friend take a look at it & couldn't solve the problem. > > Kathy > > > > On Sun, Jul 11, 2010 at 6:14 PM, Krusty Ruffle < > [email protected]> wrote: > > > Okay, here is what's happening: > > > > I'm testing stuff so I'm inserting text with a firefox lipsum extension, > it > > leaves trailing newlines after inserting text. If you select the text in > > the > > excerpt input on the edit post page and miss the newline it will cause > > empty > > strings to be returned in pages that use excerpts, if you update it a > > second > > time the problem will be fixed. > > > > I think it's trimming the excerpt text when it sets the value for the > input > > in the edit page, but I'm guessing it doesn't when it saves the data on > > update. At any rate I know what causes the problem and can now avoid it > in > > several ways, if my skills were more advanced I would try to track it > down, > > submit a bug report, make a patch and all that stuff. Unfortunately I am > a > > very amateur PHP hacker type so I'll have to leave it at that and hope > that > > this thread does some good for someone somewhere along the line. > > > > Thanks again for the help and suggestions, if there's anything more I can > > do > > I'd be more than glad to try! > > _______________________________________________ > > wp-testers mailing list > > [email protected] > > http://lists.automattic.com/mailman/listinfo/wp-testers > > > > > ------------------------------ > > Message: 3 > Date: Sun, 11 Jul 2010 20:36:49 -0400 > From: Krusty Ruffle <[email protected]> > Subject: Re: [wp-testers] WordPress 3.0: problem with empty > excerptsbeingreturned by the_excerpt() > To: [email protected] > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > It took me a little bit but I figured out that it can be solved in > /wp-includes/formatting.php > > change line 1825 from: > > if( '' == $text ) { > > to: > > if ( '' == trim ( $text ) ) { > > Editing core files is not something I like to do though... > > Looking at that plugin, it does a lot more than what I need so I'll > probably > just use a trimming filter in the functions.php file for now, thanks for > suggesting it though. > > On Sun, Jul 11, 2010 at 8:00 PM, Kathy Pop <[email protected]> wrote: > > > Hi, > > > > I just solved it by installing the plugin, excerpts editor. I have a PHP > > programmer friend take a look at it & couldn't solve the problem. > > > > > ------------------------------ > > Message: 4 > Date: Mon, 12 Jul 2010 10:03:03 +0800 > From: CLAY RANYUN <[email protected]> > Subject: [wp-testers] test > To: [email protected] > Message-ID: > <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > sfd > > > ------------------------------ > > _______________________________________________ > wp-testers mailing list > [email protected] > http://lists.automattic.com/mailman/listinfo/wp-testers > > > End of wp-testers Digest, Vol 65, Issue 6 > ***************************************** > _______________________________________________ wp-testers mailing list [email protected] http://lists.automattic.com/mailman/listinfo/wp-testers
