[wp-hackers] strange bug / typo in wp source

Malaiac malaiac at gmail.com
Wed May 20 20:31:38 GMT 2009


/wp-includes/compat.php
line 102-110

in the svn http://svn.automattic.com/wordpress/trunk/wp-includes/compat.php
if ( !function_exists( 'htmlspecialchars_decode' ) ) {
	// Added in PHP 5.1.0
	// Error checks from PEAR::PHP_Compat
	function htmlspecialchars_decode( $string, $quote_style = ENT_COMPAT )
	{
		if ( !is_scalar( $string ) ) {


in two recently downloaded files from  http://fr.wordpress.org/
if ( !function_exists( 'htmlspecialchars_decode' ) ) {
	// Added in PHP 5.1.0
	// Error checks from PEAR::PHP_Compat
	function htmlspecialchars_decode( $str, $quote_style = ENT_COMPAT )
// <<< $str instead of $string
	{
		if ( !is_scalar( $string ) ) { // obvious error


More information about the wp-hackers mailing list