From 53cfffd15252e6314c33865f5cb8f93e5a4b3143 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 15 Aug 2011 06:42:43 +0000 Subject: [PATCH] Use ini_set instead of set_magic_quotes_runtime() to prevent silenced E_DEPRECATED notice. props wonderboymusic. git-svn-id: https://develop.svn.wordpress.org/trunk@18549 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-settings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-settings.php b/wp-settings.php index 45bb8994d3..d003424ca6 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -29,8 +29,8 @@ wp_initial_constants( ); wp_check_php_mysql_versions(); // Disable magic quotes at runtime. Magic quotes are added using wpdb later in wp-settings.php. -set_magic_quotes_runtime( 0 ); -@ini_set( 'magic_quotes_sybase', 0 ); +@ini_set( 'magic_quotes_runtime', 0 ); +@ini_set( 'magic_quotes_sybase', 0 ); // Set default timezone in PHP 5. if ( function_exists( 'date_default_timezone_set' ) )