Show media upload buttons when RTE is not enabled. Props tellyworth. fixes #5764
git-svn-id: https://develop.svn.wordpress.org/trunk@6746 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
26c5a4f49d
commit
7b16c13118
@ -957,6 +957,15 @@ function the_editor($content, $id = 'content', $prev_id = 'title') {
|
||||
document.getElementById('editor-toolbar').style.display = 'block';
|
||||
// ]]>
|
||||
</script>
|
||||
|
||||
<?php else: // Rich editor is disabled in profile but we still need the media buttons ?>
|
||||
|
||||
<div id='editor-toolbar' style='display:block;'>
|
||||
<div id="media-buttons">
|
||||
<?php _e('Add media:'); ?>
|
||||
<?php do_action( 'media_buttons'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endif; // user_can_richedit() ?>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user