Permalink
Browse files

Use ini_set instead of set_magic_quotes_runtime() to prevent silenced…

… E_DEPRECATED notice. props wonderboymusic.

git-svn-id: http://svn.automattic.com/wordpress/trunk@18549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent 2bdadbc commit 1fd123aa409d23cc00b52d9aef6ad7761156b7b8 nacin committed Aug 15, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 wp-settings.php
View
@@ -29,8 +29,8 @@
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' ) )

0 comments on commit 1fd123a

Please sign in to comment.