Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

_autop_newline_preservation_helper( array $matches )

Newline preservation help function for wpautop


Description Description


Parameters Parameters

$matches

(array) (Required) preg_replace_callback matches array


Top ↑

Return Return

(string)


Top ↑

Source Source

File: wp-includes/formatting.php

function _autop_newline_preservation_helper( $matches ) {
	return str_replace( "\n", '<WPPreserveNewline />', $matches[0] );
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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