wpseek.com
A WordPress-centric search engine for devs and theme authors



_autop_newline_preservation_helper › WordPress Function

Since3.1.0
Deprecatedn/a
_autop_newline_preservation_helper ( $matches )
Access:
  • private
Parameters:
  • (array) $matches preg_replace_callback matches array
    Required: Yes
Returns:
  • (string)
Defined at:
Codex:

Newline preservation help function for wpautop().



Source

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