[wp-trac] [WordPress Trac] #4841: Displaying "Array" everywhere and cannot post

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 28 17:19:27 GMT 2007


#4841: Displaying "Array" everywhere and cannot post
-------------------------+--------------------------------------------------
 Reporter:  lorenzone92  |       Owner:  anonymous                                   
     Type:  defect       |      Status:  new                                         
 Priority:  high         |   Milestone:  2.4 (next)                                  
Component:  General      |     Version:                                              
 Severity:  normal       |    Keywords:  array draft posting zend optimizer php cache
-------------------------+--------------------------------------------------
 The issue seems to be caused by some PHP cache software like Zend
 Optimizer. In many box is displayed the word "Array" and the administrator
 can publish nothing; when you click on the "publich" button WP will post
 it as a draft.

 The user Seveneth found a fix:

 in /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)] );

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4841>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list