Anyone know of a nice way to disable that pop-up dialogue when exiting the post-editor?
It says “This page is asking you to confirm that you want to leave – data you have entered may not be saved.”

Nice feature, but annoying in certain blogs where I have to edit a ton of posts

3 Answers
3

You can use the method described here. Add the following to your functions.php

<?php
function wpse35898_admin_head() {  
    ?> 
    <script type="text/javascript"> 
        window.onbeforeunload = function() {};
    </script> 
    <?php 
} 
add_action( 'admin_head' , 'wpse35898_admin_head' ); 
?>

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *