Changeset 49004 for trunk/tests/phpunit/tests/attachment/slashes.php
- Timestamp:
- 09/19/2020 10:53:15 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/attachment/slashes.php
r49003 r49004 33 33 */ 34 34 function test_wp_insert_attachment() { 35 $ id= wp_insert_attachment(35 $post_id = wp_insert_attachment( 36 36 array( 37 37 'post_status' => 'publish', … … 42 42 ) 43 43 ); 44 $post = get_post( $id );44 $post = get_post( $post_id ); 45 45 46 46 $this->assertSame( wp_unslash( $this->slash_1 ), $post->post_title ); … … 48 48 $this->assertSame( wp_unslash( $this->slash_5 ), $post->post_excerpt ); 49 49 50 $ id= wp_insert_attachment(50 $post_id = wp_insert_attachment( 51 51 array( 52 52 'post_status' => 'publish', … … 57 57 ) 58 58 ); 59 $post = get_post( $id );59 $post = get_post( $post_id ); 60 60 61 61 $this->assertSame( wp_unslash( $this->slash_2 ), $post->post_title );
Note: See TracChangeset
for help on using the changeset viewer.