WP_Importer::min_whitespace( string $text ): string

Replace newlines, tabs, and multiple spaces with a single space.


Parameters

$text string Required

Top ↑

Return

string


Top ↑

Source

File: wp-admin/includes/class-wp-importer.php. View all references

public function min_whitespace( $text ) {
	return preg_replace( '|[\r\n\t ]+|', ' ', $text );
}

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.