Index: tests/post/slashes.php
===================================================================
--- tests/post/slashes.php	(revision 1209)
+++ tests/post/slashes.php	(working copy)
@@ -40,7 +40,7 @@
 		$_POST['post_title'] = $this->slash_1;
 		$_POST['content'] = $this->slash_5;
 		$_POST['excerpt'] = $this->slash_7;
-		$_POST = add_magic_quotes( $_POST ); // the edit_post() function will strip slashes
+		$_POST = wp_slash( $_POST ); // the edit_post() function will strip slashes
 
 		$post_id = edit_post();
 		$post = get_post( $post_id );
@@ -54,7 +54,7 @@
 		$_POST['post_title'] = $this->slash_2;
 		$_POST['content'] = $this->slash_4;
 		$_POST['excerpt'] = $this->slash_6;
-		$_POST = add_magic_quotes( $_POST );
+		$_POST = wp_slash( $_POST );
 
 		$post_id = edit_post();
 		$post = get_post( $post_id );
Index: tests/post/meta.php
===================================================================
--- tests/post/meta.php	(revision 1209)
+++ tests/post/meta.php	(working copy)
@@ -219,7 +219,7 @@
 		$data = "'quote and \slash";
 		$this->assertTrue( update_meta( $mid1, 'unique_update', addslashes( $data ) ) );
 		$meta = get_metadata_by_mid( 'post', $mid1 );
-		$this->assertEquals( $data, $meta->meta_value );
+		$this->assertEquals( addslashes( $data ), $meta->meta_value );
 	}
 
 	/**
Index: tests/meta.php
===================================================================
--- tests/meta.php	(revision 1209)
+++ tests/meta.php	(working copy)
@@ -124,9 +124,11 @@
 	function test_metadata_slashes() {
 		$key = rand_str();
 		$value = 'Test\\singleslash';
-		$expected = 'Testsingleslash';
+		$expected = 'Test\\singleslash';
 		$value2 = 'Test\\\\doubleslash';
-		$expected2 = 'Test\\doubleslash';
+		$expected2 = 'Test\\\\doubleslash';
+		$value3 = 'Test\oneslash';
+		$expected3 = 'Test\oneslash';
 		$this->assertFalse( metadata_exists( 'user', $this->author->ID, $key ) );
 		$this->assertFalse( delete_metadata( 'user', $this->author->ID, $key ) );
 		$this->assertSame( '', get_metadata( 'user', $this->author->ID, $key, true ) );
@@ -149,5 +151,15 @@
 		$this->assertSame( '', get_metadata( 'user', $this->author->ID, $key, true ) );
 		$this->assertInternalType( 'int', update_metadata( 'user', $this->author->ID, $key, $value2 ) );
 		$this->assertEquals( $expected2, get_metadata( 'user', $this->author->ID, $key, true ) );
+		$this->assertTrue( delete_metadata( 'user', $this->author->ID, $key ) );
+		$this->assertSame( '', get_metadata( 'user', $this->author->ID, $key, true ) );
+		$this->assertFalse( metadata_exists( 'user', $this->author->ID, $key ) );
+
+		$this->assertInternalType( 'int', add_metadata( 'user', $this->author->ID, $key, $value3 ) );
+		$this->assertEquals( $expected3, get_metadata( 'user', $this->author->ID, $key, true ) );
+		$this->assertTrue( delete_metadata( 'user', $this->author->ID, $key ) );
+		$this->assertSame( '', get_metadata( 'user', $this->author->ID, $key, true ) );
+		$this->assertInternalType( 'int', update_metadata( 'user', $this->author->ID, $key, $value3 ) );
+		$this->assertEquals( $expected3, get_metadata( 'user', $this->author->ID, $key, true ) );
 	}
 }
Index: includes/factory.php
===================================================================
--- includes/factory.php	(revision 1209)
+++ includes/factory.php	(working copy)
@@ -77,12 +77,12 @@
 	}
 
 	function create_object( $args ) {
-		return wp_insert_comment( $this->addslashes_deep( $args ) );
+		return wp_insert_comment( $args );
 	}
 
 	function update_object( $comment_id, $fields ) {
 		$fields['comment_ID'] = $comment_id;
-		return wp_update_comment( $this->addslashes_deep( $fields ) );
+		return wp_update_comment( $fields );
 	}
 
 	function create_post_comments( $post_id, $count = 1, $args = array(), $generation_definitions = null ) {
