## Testing steps **Post** - X new via UI - X update via UI - X new via code - X update via code ```php function test_slash_post_add() { wp_insert_post(array( 'post_title' => 'Title with three slashes \\\', 'post_content' => 'Content with three slashes \\\', 'post_status' => 'publish' )); die(__FUNCTION__); } // add_action('init', 'test_slash_post_add'); function test_slash_post_update() { wp_insert_post(array( 'ID' => 10277, 'post_title' => 'Title with five slashes \\\\\', 'post_content' => 'Content with five slashes \\\\\', 'post_status' => 'publish' )); die(__FUNCTION__); } // add_action('init', 'test_slash_post_update'); ``` **Category** - X new via UI (post screen) - X new via UI - X update via UI - X update via UI (quick edit) - X new via code - update via code ```php function test_slash_cat_add() { wp_insert_term( 'Test Cat with three slashes \\\', 'category', array( 'description' => 'Content with five slashes \\\\\', 'slug' => 'test-cat-with-three-slashes-999' ) ); die(__FUNCTION__); } // add_action('init', 'test_slash_cat_add'); function test_slash_cat_update() { wp_update_term( 213, 'category', array( 'name' => 'Content with three slashes \\\', 'description' => 'Content with seven slashes \\\\\\\', 'slug' => 'test-cat-with-three-slashes-999' ) ); die(__FUNCTION__); } // add_action('init', 'test_slash_cat_update'); ``` **Tag** - X new via UI (post screen) - X new via UI - X update via UI - X update via UI (quick edit) - X new via code - X update via code **User** - X new via UI - X update via UI - X new via code - X update via code ```php function test_slash_user_add() { wp_insert_user(array( 'user_login' => 'slash-user-2', 'user_pass' => 'slash-user-2', 'user_nicename' => 'slash-user-2', 'display_name' => 'User with three slashes \\\', 'first_name' => 'First \\\', 'last_name' => 'Last \\\', 'description' => 'Description with three slashes \\\', )); die(__FUNCTION__); } add_action('init', 'test_slash_user_add'); function test_slash_user_update() { wp_update_user(array( 'ID' => 4, 'user_login' => 'slash-user-2', 'user_pass' => 'slash-user-2', 'user_nicename' => 'slash-user-2', 'display_name' => 'User with five slashes \\\\\', 'first_name' => 'First \\\\\', 'last_name' => 'Last \\\\\', 'description' => 'Description with five slashes \\\\\', )); die(__FUNCTION__); } add_action('init', 'test_slash_user_update'); ``` **Attachment** - X new via UI - X update via UI - new via code - update via code **Comment** - X new via UI (front-end) - X new via UI (admin) - X update via UI (quick edit) - X update via UI - X new via code - X update via code ```php function test_slash_comment_add() { wp_insert_comment(array( 'comment_post_ID' => 10269, 'comment_author' => 'Name with three slashes \\\\\\', 'comment_author_email' => 'test@example.com', 'comment_content' => 'Content with five slashes \\\\\\\\\\', )); die(__FUNCTION__); } // add_action('init', 'test_slash_comment_add'); function test_slash_comment_update() { wp_update_comment(array( 'comment_ID' => 85, 'comment_author' => 'Name with five slashes \\\\\\\\\\', 'comment_content' => 'Content with seven slashes \\\\\\\\\\\\\\', )); die(__FUNCTION__); } // add_action('init', 'test_slash_comment_update'); ```