Index: wp-settings.php
===================================================================
--- wp-settings.php	(revision 19626)
+++ wp-settings.php	(working copy)
@@ -30,7 +30,6 @@
 
 // Disable magic quotes at runtime. Magic quotes are added using wpdb later in wp-settings.php.
 @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' ) )
Index: wp-includes/load.php
===================================================================
--- wp-includes/load.php	(revision 19626)
+++ wp-includes/load.php	(working copy)
@@ -533,6 +533,9 @@
 		$_COOKIE = stripslashes_deep( $_COOKIE );
 	}
 
+	// Turn off sybase quoting after stripslashes has run
+	@ini_set( 'magic_quotes_sybase', 0 );
+
 	// Escape with wpdb.
 	$_GET    = add_magic_quotes( $_GET    );
 	$_POST   = add_magic_quotes( $_POST   );
