Make WordPress Core

Ticket #54568: patch.diff

File patch.diff, 656 bytes (added by maximeschoeni, 5 years ago)
  • wp-admin/includes/misc.php

     
    12811281        <link id="wp-admin-canonical" rel="canonical" href="<?php echo esc_url( $filtered_url ); ?>" />
    12821282        <script>
    12831283                if ( window.history.replaceState ) {
    1284                         window.history.replaceState( null, null, document.getElementById( 'wp-admin-canonical' ).href + window.location.hash );
     1284                        window.history.replaceState( window.history.state, null, document.getElementById( 'wp-admin-canonical' ).href + window.location.hash );
    12851285                }
    12861286        </script>
    12871287        <?php