Remove extra filter, fixes #7585

git-svn-id: http://svn.automattic.com/wordpress/trunk@8721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2008-08-24 14:19:05 +00:00
parent 95fa29a208
commit 67ef4e1abc
1 changed files with 2 additions and 3 deletions

View File

@ -955,7 +955,7 @@ function the_editor($content, $id = 'content', $prev_id = 'title', $media_button
$rows = "rows='$rows'"; ?>
<div id="editor-toolbar">
<?php if ( user_can_richedit() && $media_buttons ) {
<?php if ( user_can_richedit() ) {
$wp_default_editor = wp_default_editor(); ?>
<div class="zerosize"><input accesskey="e" type="button" onclick="switchEditors.go('<?php echo $id; ?>')" /></div>
<?php if ( 'tinymce' == $wp_default_editor ) {
@ -967,8 +967,7 @@ function the_editor($content, $id = 'content', $prev_id = 'title', $media_button
<a id="edButtonHTML" class="active"><?php _e('HTML'); ?></a>
<a id="edButtonPreview" onclick="switchEditors.go('<?php echo $id; ?>');"><?php _e('Visual'); ?></a>
<?php }
} else
add_filter('the_editor_content', 'wp_htmledit_pre');
}
/* if ( $media_buttons ) { ?>
<div id="media-buttons" class="hide-if-no-js">