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



rich_edit_exists › WordPress Function

Since2.1.0
已弃用3.9.0
rich_edit_exists ( 没有参数 )
返回:
  • (bool) Whether TinyMCE exists.
定义在:
文档:

Determine if TinyMCE is available.

Checks to see if the user has deleted the tinymce files to slim down their WordPress installation.


源码

function rich_edit_exists() {
	global $wp_rich_edit_exists;
	_deprecated_function( __FUNCTION__, '3.9.0' );

	if ( ! isset( $wp_rich_edit_exists ) )
		$wp_rich_edit_exists = file_exists( ABSPATH . WPINC . '/js/tinymce/tinymce.js' );

	return $wp_rich_edit_exists;
}