[wp-trac] [WordPress Trac] #14428: Warning on export in wp-includes/formatting.php
WordPress Trac
wp-trac at lists.automattic.com
Tue Jul 27 11:19:44 UTC 2010
#14428: Warning on export in wp-includes/formatting.php
--------------------------+-------------------------------------------------
Reporter: kau-boy | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Export | Version: 3.0
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Trying to export the WordPress data with the export functionality you get
the following warning:[[BR]]
[[BR]]
{{{
Warning: strip_tags() expects parameter 1 to be string, array given in
C:\xampp\htdocs\wordpress\wp-includes\formatting.php on line 2776
}}}
[[BR]]
That happens because the export mechanism tries to use an array with the
categories on the function wp_strip_all_tags() which can only get strings
as a parameter.[[BR]]
To fix the bug you can either remove the call to wp_strip_all_tags()
(wherever it takes place), or you can check the parameter of the
wp_strip_all_tags() function to be a string (add to line 2772 of wp-
includes/formatting.php):[[BR]]
{{{
// not a string
if( !is_string( $string ) )
retrun $string;
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14428>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list