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/deprecated.php

    r26868 r26933  
    33933393    return trim( $t, "\"'\n\r " );
    33943394}
     3395
     3396/**
     3397 * Determine if TinyMCE is available.
     3398 *
     3399 * Checks to see if the user has deleted the tinymce files to slim down their WordPress install.
     3400 *
     3401 * @since 2.1.0
     3402 * @deprecated 3.9.0
     3403 *
     3404 * @return bool Whether TinyMCE exists.
     3405 */
     3406function rich_edit_exists() {
     3407    global $wp_rich_edit_exists;
     3408    _deprecated_function( __FUNCTION__, '3.9' );
     3409
     3410    if ( ! isset( $wp_rich_edit_exists ) )
     3411        $wp_rich_edit_exists = file_exists( ABSPATH . WPINC . '/js/tinymce/tinymce.js' );
     3412
     3413    return $wp_rich_edit_exists;
     3414}
     3415
Note: See TracChangeset for help on using the changeset viewer.