_cleanup_image_add_caption() - WordPress 函数参考中文文档

返回介绍

_cleanup_image_add_caption()

发布于 2017-09-11 字数 922 浏览 774 评论 0

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.

_cleanup_image_add_caption( $matches )

Private preg_replace callback used in image_add_caption()


描述


源代码

File: wp-admin/includes/media.php

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

更新日志

Version 描述
3.4.0 Introduced.

User Contributed Notes

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!