Make WordPress Core

Changeset 6746


Ignore:
Timestamp:
02/07/2008 04:21:22 AM (17 years ago)
Author:
ryan
Message:

Show media upload buttons when RTE is not enabled. Props tellyworth. fixes #5764

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r6726 r6746  
    958958    // ]]>
    959959    </script>
     960   
     961    <?php else: // Rich editor is disabled in profile but we still need the media buttons   ?>
     962       
     963    <div id='editor-toolbar' style='display:block;'>
     964            <div id="media-buttons">
     965            <?php _e('Add media:'); ?>
     966            <?php do_action( 'media_buttons'); ?>
     967            </div>
     968    </div>
    960969
    961970    <?php endif; // user_can_richedit() ?>
Note: See TracChangeset for help on using the changeset viewer.