WordPress.org

Make WordPress Core

Changeset 27950


Ignore:
Timestamp:
04/05/2014 01:10:19 AM (7 years ago)
Author:
azaozz
Message:

Throw a user notice when the editor ID used for TinyMCE contains brackets, props nacin, fixes #27601

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-editor.php

    r27927 r27950  
    8181
    8282        self::$this_tinymce = ( $set['tinymce'] && user_can_richedit() );
     83
     84        if ( self::$this_tinymce ) {
     85            if ( false !== strpos( $editor_id, '[' ) ) {
     86                self::$this_tinymce = false;
     87                _deprecated_argument( 'wp_editor()', '3.9', 'TinyMCE editor IDs cannot have brackets.' );
     88            }
     89        }
     90
    8391        self::$this_quicktags = (bool) $set['quicktags'];
    8492
Note: See TracChangeset for help on using the changeset viewer.