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

返回介绍

rich_edit_exists()

发布于 2017-09-11 字数1243 浏览 835 评论 0

Warning: This function has been deprecated.

rich_edit_exists()

Determine if TinyMCE is available.


描述

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


返回值

(bool) Whether TinyMCE exists.


源代码

File: wp-includes/deprecated.php

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

更新日志

Version 描述
3.9.0 This function has been deprecated.
2.1.0 Introduced.

相关函数

Uses

  • wp-includes/functions.php:
    _deprecated_function()

User Contributed Notes

上一篇:rewind_posts()

下一篇:rsd_link()

发布评论

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

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