Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am frustrated having to click on the "Upload Files" constantly instead of the first choice being Upload Files in posts editor....How can i make “Upload files” selected by default instead of "Media library"?

share|improve this question
3  
It's worth noting that you can drag and drop files and initiate upload while in the "media library" panel without having to actually click "upload files" first. –  Milo Apr 20 '13 at 1:32
add comment

1 Answer

Add this to your functions.php, or preferably a functionality plugin.

add_action( 'admin_footer-post-new.php', 'media_manager_default' );
add_action( 'admin_footer-post.php', 'media_manager_default' );

function media_manager_default() {
    ?>
    <script type="text/javascript">
        jQuery(document).ready(function($){
            wp.media.controller.Library.prototype.defaults.contentUserSetting=false;
        });
    </script>
    <?php
}
share|improve this answer
2  
Damn dude how deep into core did you have to go to pull that one out? –  Andrew Bartel Apr 19 '13 at 23:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.