Changeset 57251 for trunk/tests/phpunit/tests/term/wpInsertTerm.php
- Timestamp:
- 01/08/2024 10:42:49 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/wpInsertTerm.php
r56548 r57251 896 896 } 897 897 898 /** 899 * @ticket 59995 900 */ 901 public function test_wp_insert_term_with_empty_name_after_db_sanitization() { 902 $term = wp_insert_term( 903 '<script>onclick=alert("hello")</script>', 904 'post_tag' 905 ); 906 907 $this->assertWPError( $term ); 908 $this->assertSame( 'invalid_term_name', $term->get_error_code() ); 909 } 910 898 911 /** Helpers */ 899 912
Note: See TracChangeset
for help on using the changeset viewer.