wpseek.com
WordPress开发者和主题制作者的搜索引擎



_autop_newline_preservation_helper › WordPress Function

Since3.1.0
已弃用n/a
_autop_newline_preservation_helper ( $matches )
访问:
  • private
参数:
  • (array) $matches preg_replace_callback matches array
    Required: Yes
返回:
  • (string)
定义在:
文档:

Newline preservation help function for wpautop().



源码

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