Changeset 56809 for trunk/src/wp-includes/functions.php
- Timestamp:
- 10/09/2023 09:29:42 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r56763 r56809 7586 7586 7587 7587 /** 7588 * Outputs a small JS snippet on preview tabs/windows to remove `window.name` on unload.7588 * Outputs a small JS snippet on preview tabs/windows to remove `window.name` when a user is navigating to another page. 7589 7589 * 7590 7590 * This prevents reusing the same tab for a preview when the user has navigated away. … … 7615 7615 7616 7616 if ( window.addEventListener ) { 7617 window.addEventListener( ' unload', function() { window.name = ''; }, false);7617 window.addEventListener( 'pagehide', function() { window.name = ''; } ); 7618 7618 } 7619 7619 }());
Note: See TracChangeset
for help on using the changeset viewer.