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



_cleanup_image_add_caption › WordPress Function

Since3.4.0
已弃用n/a
_cleanup_image_add_caption ( $matches )
访问:
  • private
参数:
  • (array) $matches Single regex match.
    Required: Yes
返回:
  • (string) Cleaned up HTML for caption.
定义在:
文档:

Private preg_replace callback used in image_add_caption().



源码

function _cleanup_image_add_caption( $matches ) {
	// Remove any line breaks from inside the tags.
	return preg_replace( '/[\r\n\t]+/', ' ', $matches[0] );
}