Make WordPress Core

Changeset 31882


Ignore:
Timestamp:
03/25/2015 04:31:21 AM (10 years ago)
Author:
dd32
Message:

When altering the admin URL to reflect the canonical location, keep the existing hash (if present) in the URL.
Fixes #31758. See #23367

File:
1 edited

Legend:

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

    r31736 r31882  
    881881    <script>
    882882        if ( window.history.replaceState ) {
    883             window.history.replaceState( null, null, document.getElementById( 'wp-admin-canonical' ).href );
     883            window.history.replaceState( null, null, document.getElementById( 'wp-admin-canonical' ).href + window.location.hash );
    884884        }
    885885    </script>
Note: See TracChangeset for help on using the changeset viewer.