Make WordPress Core


Ignore:
Timestamp:
01/13/2026 11:57:44 PM (4 weeks ago)
Author:
SergeyBiryukov
Message:

Plugins: Remove incorrect entries from the recently_activated option array.

This aims to avoid a fatal error if the array was somehow corrupted and contains non-numeric values.

Follow-up to [8049].

Props umeshsinghin, azora, sabernhardt, deepakrohilla, narenin, SergeyBiryukov.
Fixes #62542.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugins-list-table.php

    r61456 r61481  
    187187
    188188        foreach ( $recently_activated as $key => $time ) {
    189             if ( $time + WEEK_IN_SECONDS < time() ) {
     189            if ( ! is_int( $time ) || $time + WEEK_IN_SECONDS < time() ) {
    190190                unset( $recently_activated[ $key ] );
    191191            }
Note: See TracChangeset for help on using the changeset viewer.