💥 TRENDING: Changeset/ - HD Photos!

Skip to:

Changeset 14180


Ignore:
Timestamp:
12/27/2025 02:20:46 AM (3 days ago)
Author:
espellcaste
Message:

Administration: Remove deprecated unload event handlers with pagehide.

For a more deeper understanding about this change, refer to https://core.trac.wordpress.org/ticket/55491.

Props westonruter and vapvarun.

See #9299 (14.0).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/14.0/src/bp-templates/bp-nouveau/js/buddypress-notifications.js

    r12856 r14180  
    5555            $( '#buddypress [data-bp-list="notifications"]' ).on( 'click', '#select-all-notifications', this.selectAll );
    5656
    57             // Reset The filter before unload.
    58             $( window ).on( 'unload', this.resetFilter );
     57            // Reset The filter before leaving the page.
     58            $( window ).on( 'pagehide', this.resetFilter );
    5959        },
    6060
Note: See TracChangeset for help on using the changeset viewer.