Changeset 27366
- Timestamp:
- 03/03/2014 01:14:27 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-editor.php
r27364 r27366 88 88 public static function editor( $content, $editor_id, $settings = array() ) { 89 89 90 $set = self::parse_settings( $editor_id, $settings);90 $set = self::parse_settings( $editor_id, $settings ); 91 91 $editor_class = ' class="' . trim( $set['editor_class'] . ' wp-editor-area' ) . '"'; 92 92 $tabindex = $set['tabindex'] ? ' tabindex="' . (int) $set['tabindex'] . '"' : ''; 93 93 $switch_class = 'html-active'; 94 $toolbar = $buttons = '';94 $toolbar = $buttons = $autocomplete = ''; 95 95 96 96 if ( ! empty( $set['editor_height'] ) ) … … 104 104 if ( ! self::$this_quicktags && self::$this_tinymce ) { 105 105 $switch_class = 'tmce-active'; 106 $autocomplete = ' autocomplete="off"'; 106 107 } elseif ( self::$this_quicktags && self::$this_tinymce ) { 107 108 $default_editor = $set['default_editor'] ? $set['default_editor'] : wp_default_editor(); 109 $autocomplete = ' autocomplete="off"'; 108 110 109 111 // 'html' is used for the "Text" editor tab. … … 148 150 } 149 151 150 $the_editor = apply_filters('the_editor', '<div id="wp-' . $editor_id . '-editor-container" class="wp-editor-container"><textarea' . $editor_class . $height . $tabindex . ' cols="40" name="' . $set['textarea_name'] . '" id="' . $editor_id . '">%s</textarea></div>'); 151 $content = apply_filters('the_editor_content', $content); 152 153 printf($the_editor, $content); 152 $the_editor = apply_filters( 'the_editor', '<div id="wp-' . $editor_id . '-editor-container" class="wp-editor-container">' . 153 '<textarea' . $editor_class . $height . $tabindex . $autocomplete . ' cols="40" name="' . $set['textarea_name'] . '" ' . 154 'id="' . $editor_id . '">%s</textarea></div>' ); 155 $content = apply_filters( 'the_editor_content', $content ); 156 157 printf( $the_editor, $content ); 154 158 echo "\n</div>\n\n"; 155 159
Note: See TracChangeset
for help on using the changeset viewer.