Skip to:
Content

BuddyPress.org

Changeset 14181


Ignore:
Timestamp:
12/27/2025 02:22:07 AM (3 weeks 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.

Fixes #9299 (trunk).

File:
1 edited

Legend:

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

    r12856 r14181  
    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.