Make WordPress Core


Ignore:
Timestamp:
01/13/2014 12:00:00 AM (11 years ago)
Author:
azaozz
Message:

Deprecate rich_edit_exists(). It doesn't make sense to support deleting the TinyMCE directory when we have auto-updates. Fixes #26786.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r26786 r26933  
    17981798
    17991799/**
    1800  * Determine if TinyMCE is available.
    1801  *
    1802  * Checks to see if the user has deleted the tinymce files to slim down there WordPress install.
    1803  *
    1804  * @since 2.1.0
    1805  *
    1806  * @return bool Whether TinyMCE exists.
    1807  */
    1808 function rich_edit_exists() {
    1809     global $wp_rich_edit_exists;
    1810     if ( !isset($wp_rich_edit_exists) )
    1811         $wp_rich_edit_exists = file_exists(ABSPATH . WPINC . '/js/tinymce/tiny_mce.js');
    1812     return $wp_rich_edit_exists;
    1813 }
    1814 
    1815 /**
    18161800 * Whether the user should have a WYSIWIG editor.
    18171801 *
Note: See TracChangeset for help on using the changeset viewer.