wp/wp-admin/includes/class-wp-importer.php
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
   236 
   236 
   237 		return false;
   237 		return false;
   238 	}
   238 	}
   239 
   239 
   240 	/**
   240 	/**
   241 	 * Replace newlines, tabs, and multiple spaces with a single space
   241 	 * Replace newlines, tabs, and multiple spaces with a single space.
   242 	 *
   242 	 *
   243 	 * @param string $string
   243 	 * @param string $text
   244 	 * @return string
   244 	 * @return string
   245 	 */
   245 	 */
   246 	public function min_whitespace( $string ) {
   246 	public function min_whitespace( $text ) {
   247 		return preg_replace( '|[\r\n\t ]+|', ' ', $string );
   247 		return preg_replace( '|[\r\n\t ]+|', ' ', $text );
   248 	}
   248 	}
   249 
   249 
   250 	/**
   250 	/**
   251 	 * Resets global variables that grow out of control during imports.
   251 	 * Resets global variables that grow out of control during imports.
   252 	 *
   252 	 *