mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 20:54:29 +00:00
Deprecate rich_edit_exists(). It doesn't make sense to support deleting the TinyMCE directory when we have auto-updates. Fixes #26786.
git-svn-id: https://develop.svn.wordpress.org/trunk@26933 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1796,22 +1796,6 @@ function wp_no_robots() {
|
||||
echo "<meta name='robots' content='noindex,follow' />\n";
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if TinyMCE is available.
|
||||
*
|
||||
* Checks to see if the user has deleted the tinymce files to slim down there WordPress install.
|
||||
*
|
||||
* @since 2.1.0
|
||||
*
|
||||
* @return bool Whether TinyMCE exists.
|
||||
*/
|
||||
function rich_edit_exists() {
|
||||
global $wp_rich_edit_exists;
|
||||
if ( !isset($wp_rich_edit_exists) )
|
||||
$wp_rich_edit_exists = file_exists(ABSPATH . WPINC . '/js/tinymce/tiny_mce.js');
|
||||
return $wp_rich_edit_exists;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether the user should have a WYSIWIG editor.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user