Changeset 1230 in tests for trunk/tests/post/slashes.php
- Timestamp:
- 03/03/2013 09:10:38 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/post/slashes.php
r1215 r1230 41 41 $_POST['content'] = $this->slash_5; 42 42 $_POST['excerpt'] = $this->slash_7; 43 $_POST = wp_slash( $_POST ); // the edit_post() function will strip slashes43 $_POST = add_magic_quotes( $_POST ); // the edit_post() function will strip slashes 44 44 45 45 $post_id = edit_post(); … … 55 55 $_POST['content'] = $this->slash_4; 56 56 $_POST['excerpt'] = $this->slash_6; 57 $_POST = wp_slash( $_POST );57 $_POST = add_magic_quotes( $_POST ); 58 58 59 59 $post_id = edit_post(); … … 75 75 'post_content' => $this->slash_3, 76 76 'post_excerpt' => $this->slash_5, 77 'post_type' => 'post' 77 'post_type' => 'post', 78 'slashed' => false, 78 79 )); 79 80 $post = get_post( $id );
Note: See TracChangeset
for help on using the changeset viewer.