rich_edit_exists

函数
rich_edit_exists ( No parameters )
返回值
  • (bool) Whether TinyMCE exists.
定义位置
相关方法
comment_existswp_richedit_preemail_existsdomain_existstag_exists
引入
2.1.0
弃用
3.9.0

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;
}