I figured out how I worked around it last time - here it is, in case anyone else has the same problem:
Replace
function wp_kses_named_entities($matches) {
global $allowedentitynames;
if ( empty($matches[1]) )
return '';
$i = $matches[1];
return ( ( ! in_array($i, $allowedentitynames) ) ? "&$i;" : "&$i;" );
}
with
function my_in_array( $needle, $haystack ){
if (sizeof($haystack) > 0){return in_array($needle, $haystack);}
return false;
}
function wp_kses_named_entities($matches) {
global $allowedentitynames;
if ( empty($matches[1]) )
return '';
$i = $matches[1];
return ( ( ! my_in_array($i, $allowedentitynames) ) ? "&$i;" : "&$i;" );
}
I doubt this fixes the underlying problem, but it gets the error message off of my screen, and I haven't noticed any ill-effects.