” . $cnat[2];
}
$content = explode(‘‘, $content,2);
if ((preg_match(‘//’, $GLOBALS[‘post’]->post_content) &&
((!$GLOBALS[‘multipage’]) || ($GLOBALS[‘page’]==1)))) {
$stripteaser = 1;
}
$teaser = $content[0];
if (!empty($GLOBALS[‘more’]) && ($stripteaser)) {
$teaser = ”;
}
$output .= $teaser;
if (count($content)>1) {
if (!empty($GLOBALS[‘more’])) {
$output .= ‘
‘.$content[1];
} else {
$output .= ‘ ‘.$more_link_text.’‘;
}
}
if (!empty($GLOBALS[‘preview’])) { // preview fix for javascript bug wit
h foreign languages
$output = preg_replace(‘/%u([0-9A-F]{4,4})/e’, “‘&#’.base_con
vert(‘1′,16,10).’;'”, $output);
}
return $output;
}

Once you understand it, there is nothing particularly difficult about it, but getting to that point took a long time. The code is extremely hard to follow. It is probably fine if you use an IDE, but it is difficult when working with SSH+vi. It easily took several hours just to understand the structure.

Also, because the error was annoying, I inserted the following at line 7 of wp-admin/admin-header.php.

if(!isset($GLOBALS['standalone'])) {
        $GLOBALS['standalone'] = 0;
}

Related posts

Has the War in Iraq Ended?

It is said that the war in Iraq has ended. It would be truly good if that were the end of it, but is it really…

Politics · 2003-04-11