mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 09:07:59 +01:00
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
This commit is contained in:
parent
2bdadbcc52
commit
1fd123aa40
@ -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' ) )
|
||||
|
Loading…
Reference in New Issue
Block a user