Message to Self: Wordpress 2.2.2 array fix

Date August 9, 2007

Wordpress 2.2.2 has a very strange bug on some servers. After installing the 2.2.x branch successfully you try to configure in the wp-admin menu some settings and all settings show ‘array’ . Archhhh ..

after very long waiting finally found a working solution in the wordpress forum:
Try edit /wp-includes/plugin.php [Line : 102], inside remove_filter function.
Change :

unset($GLOBALS['wp_filter'][$tag][$priority][serialize($function_to_remove)]);
To : $wp_filter[$tag][$priority][serialize($function_to_remove)] = array();
unset( $wp_filter[$tag][$priority][serialize($function_to_remove)] );

this fix in the plugin.php file will fix all the ‘array’ appearances and you can work with the new Wordpress 2.2.x version.
So message to self: try to upgrade this weekend to 2.2.2 where plugins and theme keeps unaltered ;-)

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

After submitting a comment you can MODIFY it again by clicking the message or name

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word