Ticket #5764: media-buttons-r6744.patch

File media-buttons-r6744.patch, 666 bytes (added by tellyworth, 4 years ago)

alternate patch

  • wp-includes/general-template.php

     
    957957                        document.getElementById('editor-toolbar').style.display = 'block'; 
    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() ?> 
    962971