WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/02/2016 01:29:25 AM (5 years ago)
Author:
azaozz
Message:

Editor: ensure the page is refreshed when the users navigate to it with the Back or Forward buttons. In these cases the browsers usually load the page from (memory) cache and it contains the old editor content.

Fixes #35852.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/admin-filters.php

    r37570 r37619  
    4444add_action( 'admin_head', '_ipad_meta'               );
    4545
    46 add_action( 'post_edit_form_tag', 'post_form_autocomplete_off' );
     46add_action( 'admin_print_scripts-post.php',     'wp_page_reload_on_back_button_js' );
     47add_action( 'admin_print_scripts-post-new.php', 'wp_page_reload_on_back_button_js' );
    4748
    4849add_action( 'update_option_home',          'update_home_siteurl', 10, 2 );
Note: See TracChangeset for help on using the changeset viewer.