Changeset 60799 for trunk/tests/phpunit/tests/meta/slashes.php
- Timestamp:
- 09/25/2025 02:51:20 PM (8 weeks ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/meta/slashes.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/meta/slashes.php
r53557 r60799 45 45 $post_id = self::$post_id; 46 46 47 if ( function_exists( 'wp_add_post_meta' ) ) { 48 $meta_1 = wp_add_post_meta( $post_id, 'slash_test_1', 'foo' ); 49 $meta_2 = wp_add_post_meta( $post_id, 'slash_test_2', 'foo' ); 50 $meta_3 = wp_add_post_meta( $post_id, 'slash_test_3', 'foo' ); 51 } else { 52 // Expects slashed data. 53 $meta_1 = add_post_meta( $post_id, 'slash_test_1', addslashes( 'foo' ) ); 54 $meta_2 = add_post_meta( $post_id, 'slash_test_2', addslashes( 'foo' ) ); 55 $meta_3 = add_post_meta( $post_id, 'slash_test_3', addslashes( 'foo' ) ); 56 } 47 // Expects slashed data. 48 $meta_1 = add_post_meta( $post_id, 'slash_test_1', addslashes( 'foo' ) ); 49 $meta_2 = add_post_meta( $post_id, 'slash_test_2', addslashes( 'foo' ) ); 50 $meta_3 = add_post_meta( $post_id, 'slash_test_3', addslashes( 'foo' ) ); 57 51 58 52 $_POST = array();
Note: See TracChangeset
for help on using the changeset viewer.