” . $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
Choosing a Car — Test Drives Begin —
This may be sudden, but I am thinking of buying a car. Since the Mark II I used to drive was totaled (a truck that ran…

Localizing the WordPress Theme Minimal Xpert into Japanese
One WordPress theme I have recently come to like is Minimal Xpert. I had been using it for some time on the Cimbalom World Association website,…
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…
