From 3d71d8a32a2bee3d8a36ee5d89b1c994630e5d5a Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 11 Feb 2009 19:36:32 +0000 Subject: [PATCH] Use right variable name. Props stringfold. fixes #9090 for trunk git-svn-id: https://develop.svn.wordpress.org/trunk@10543 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/compat.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/compat.php b/wp-includes/compat.php index 47e6c8ba7c..b08c5654c6 100644 --- a/wp-includes/compat.php +++ b/wp-includes/compat.php @@ -99,7 +99,7 @@ function _mb_strcut( $str, $start, $length=null, $encoding=null ) { 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 ) + function htmlspecialchars_decode( $string, $quote_style = ENT_COMPAT ) { if ( !is_scalar( $string ) ) { trigger_error( 'htmlspecialchars_decode() expects parameter 1 to be string, ' . gettype( $string ) . ' given', E_USER_WARNING ); @@ -111,7 +111,7 @@ if ( !function_exists( 'htmlspecialchars_decode' ) ) { return; } - return wp_specialchars_decode( $str, $quote_style ); + return wp_specialchars_decode( $string, $quote_style ); } }