Changeset 42343 for trunk/tests/phpunit/tests/option/sanitize-option.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/option/sanitize-option.php
r42146 r42343 10 10 * 11 11 * Inner array params: $option_name, $sanitized, $original 12 * 12 13 * @return array 13 *14 14 */ 15 15 public function sanitize_option_provider() { … … 55 55 'illegal_names', 56 56 array( 'www', 'web', 'root', 'admin', 'main', 'invite', 'administrator', 'files' ), 57 "www web root admin main invite administrator files",57 'www web root admin main invite administrator files', 58 58 ), 59 59 array( … … 87 87 } 88 88 89 public function upload_path_provider() 89 public function upload_path_provider() { 90 90 return array( 91 91 array( '<a href="http://www.example.com">Link</a>', 'Link' ), … … 129 129 $old_wp_settings_errors = (array) $wp_settings_errors; 130 130 131 $actual = sanitize_option( 'permalink_structure', $provided );131 $actual = sanitize_option( 'permalink_structure', $provided ); 132 132 $errors = get_settings_errors( 'permalink_structure' ); 133 133 … … 169 169 global $wp_settings_errors; 170 170 171 $blogname_error = array(171 $blogname_error = array( 172 172 'setting' => 'blogname', 173 173 'code' => 'blogname',
Note: See TracChangeset
for help on using the changeset viewer.