Changeset 53029
- Timestamp:
- 03/30/2022 10:43:08 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-importer.php
r50692 r53029 239 239 240 240 /** 241 * Replace newlines, tabs, and multiple spaces with a single space 242 * 243 * @param string $ string241 * Replace newlines, tabs, and multiple spaces with a single space. 242 * 243 * @param string $text 244 244 * @return string 245 245 */ 246 public function min_whitespace( $ string) {247 return preg_replace( '|[\r\n\t ]+|', ' ', $ string);246 public function min_whitespace( $text ) { 247 return preg_replace( '|[\r\n\t ]+|', ' ', $text ); 248 248 } 249 249
Note: See TracChangeset
for help on using the changeset viewer.