Changeset 47122 for trunk/tests/phpunit/tests/meta/slashes.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/meta/slashes.php
r46586 r47122 32 32 33 33 /** 34 * Tests the controller function that expects slashed data 34 * Tests the controller function that expects slashed data. 35 35 */ 36 36 function test_edit_post() { … … 41 41 $meta_3 = wp_add_post_meta( $id, 'slash_test_3', 'foo' ); 42 42 } else { 43 // expects slashed data43 // Expects slashed data. 44 44 $meta_1 = add_post_meta( $id, 'slash_test_1', addslashes( 'foo' ) ); 45 45 $meta_2 = add_post_meta( $id, 'slash_test_2', addslashes( 'foo' ) ); … … 66 66 ), 67 67 ); 68 $_POST = add_magic_quotes( $_POST ); // the edit_post() function will strip slashes 68 69 $_POST = add_magic_quotes( $_POST ); // The edit_post() function will strip slashes. 69 70 70 71 edit_post(); … … 95 96 ), 96 97 ); 97 $_POST = add_magic_quotes( $_POST ); // the edit_post() function will strip slashes 98 99 $_POST = add_magic_quotes( $_POST ); // The edit_post() function will strip slashes. 98 100 99 101 edit_post(); … … 106 108 107 109 /** 108 * Tests the legacy model function that expects slashed data 110 * Tests the legacy model function that expects slashed data. 109 111 */ 110 112 function test_add_post_meta() { … … 120 122 121 123 /** 122 * Tests the legacy model function that expects slashed data 124 * Tests the legacy model function that expects slashed data. 123 125 */ 124 126 function test_update_post_meta() { … … 134 136 135 137 /** 136 * Tests the model function that expects slashed data 138 * Tests the model function that expects slashed data. 137 139 */ 138 140 function test_add_comment_meta() { … … 157 159 158 160 /** 159 * Tests the model function that expects slashed data 161 * Tests the model function that expects slashed data. 160 162 */ 161 163 function test_update_comment_meta() { … … 184 186 185 187 /** 186 * Tests the model function that expects slashed data 188 * Tests the model function that expects slashed data. 187 189 */ 188 190 function test_add_user_meta() { … … 207 209 208 210 /** 209 * Tests the model function that expects slashed data 211 * Tests the model function that expects slashed data. 210 212 */ 211 213 function test_update_user_meta() {
Note: See TracChangeset
for help on using the changeset viewer.