[wp-trac] Re: [WordPress Trac] #9994: Only a blank page returned
when access blog home page
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 4 02:38:03 GMT 2009
#9994: Only a blank page returned when access blog home page
--------------------------+-------------------------------------------------
Reporter: kamiyeye | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: 2.8
Component: Formatting | Version: 2.8
Severity: blocker | Keywords: reporter-feedback
--------------------------+-------------------------------------------------
Comment(by kamiyeye):
sorry to back later, i didn't think there are still questions. now paste
my codes on, maybe a little late cos i saw the patch, but i think some of
you may like to view it anyway, and i believe you will know at a glance
why it happened:[[BR]]
{{{
......
$text = substr($input, $start, $length);
$len = strlen($text);
if( $len > 0 && !seems_utf8($text[$len - 1]) ) {
for( $i=0; $i<3; $i++) {
if( $len < 3 ) return '';
if( !seems_utf8($text[$len - 3].$text[$len - 2].$text[$len
- 1]) ) {
$len --;
......
}}}
Glad to know the ref is removed, as you can see, if it is added, no matter
how i change my codes, my function will not work as desired, i'll have to
make an old-version seems_utf8 copy in my theme.[[BR]]
Great patch, great work! And again, your quick reply and responsible work
impressed me, you are awesome!
Best Regards,
Kami
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9994#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list