Make WordPress Core

Ticket #27601: 27601.diff

File 27601.diff, 612 bytes (added by nacin, 12 years ago)
  • wp-includes/class-wp-editor.php

     
    8080                ) );
    8181
    8282                self::$this_tinymce = ( $set['tinymce'] && user_can_richedit() );
     83                if ( self::$this_tinymce ) {
     84                        if ( false !== strpos( $editor_id, '[' ) ) {
     85                                self::$this_tinymce = false;
     86                                _deprecated_argument( __METHOD__, 'TinyMCE editor IDs cannot have brackets.', '3.9' );
     87                        }
     88                }
    8389                self::$this_quicktags = (bool) $set['quicktags'];
    8490
    8591                if ( self::$this_tinymce )