mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 12:44:31 +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:
@@ -3392,3 +3392,24 @@ function _search_terms_tidy( $t ) {
|
||||
_deprecated_function( __FUNCTION__, '3.7' );
|
||||
return trim( $t, "\"'\n\r " );
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if TinyMCE is available.
|
||||
*
|
||||
* Checks to see if the user has deleted the tinymce files to slim down their WordPress install.
|
||||
*
|
||||
* @since 2.1.0
|
||||
* @deprecated 3.9.0
|
||||
*
|
||||
* @return bool Whether TinyMCE exists.
|
||||
*/
|
||||
function rich_edit_exists() {
|
||||
global $wp_rich_edit_exists;
|
||||
_deprecated_function( __FUNCTION__, '3.9' );
|
||||
|
||||
if ( ! isset( $wp_rich_edit_exists ) )
|
||||
$wp_rich_edit_exists = file_exists( ABSPATH . WPINC . '/js/tinymce/tinymce.js' );
|
||||
|
||||
return $wp_rich_edit_exists;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user