Changeset 1148 in tests for trunk/tests/comment/slashes.php
- Timestamp:
- 11/21/2012 03:01:28 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/tests/comment/slashes.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/comment/slashes.php
r1041 r1148 13 13 $this->old_current_user = get_current_user_id(); 14 14 wp_set_current_user( $this->author_id ); 15 15 16 16 // it is important to test with both even and odd numbered slashes as 17 17 // kses does a strip-then-add slashes in some of it's function calls … … 37 37 $post_id = $this->factory->post->create(); 38 38 39 // not testing comment_author_email or comment_author_url 39 // not testing comment_author_email or comment_author_url 40 40 // as slashes are not permitted in that data 41 41 $data = array( … … 74 74 )); 75 75 76 // not testing comment_author_email or comment_author_url 76 // not testing comment_author_email or comment_author_url 77 77 // as slashes are not permitted in that data 78 78 $_POST = array(); … … 81 81 $_POST['content'] = $this->slash_7; 82 82 $_POST = add_magic_quotes( $_POST ); 83 83 84 84 edit_comment(); 85 85 $comment = get_comment( $comment_id ); … … 93 93 $_POST['content'] = $this->slash_4; 94 94 $_POST = add_magic_quotes( $_POST ); 95 95 96 96 edit_comment(); 97 97 $comment = get_comment( $comment_id ); … … 107 107 function test_wp_insert_comment() { 108 108 $post_id = $this->factory->post->create(); 109 109 110 110 $comment_id = wp_insert_comment(array( 111 111 'comment_post_ID' => $post_id, … … 138 138 'comment_post_ID' => $post_id 139 139 )); 140 140 141 141 wp_update_comment(array( 142 142 'comment_ID' => $comment_id,
Note: See TracChangeset
for help on using the changeset viewer.