Make WordPress Core


Ignore:
Timestamp:
10/02/2026 01:57:35 AM (12 days ago)
Author:
westonruter
Message:

Code Quality: Pass documented values for deprecated arguments.

Four core calls passed a value to a deprecated parameter that did not match its documented type. None of these values are used, so there is no change in behavior.

These call sites were surfaced by narrowing the types of deprecated parameters in the PHPStan stubs. Fixing them first allows the corresponding PHPStan types to be added to core as docblock-only changes. The now-obsolete add_option() entry is removed from the PHPStan baseline.

Developed in ​https://github.com/WordPress/wordpress-develop/pull/13872.
Follow-up to r20080, r23766, r31443, r63024.

Props marian1, swissspidy, westonruter.
See #65817.

File:
1 edited

Legend:

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

    r63494 r64045  
    18661866                        $uninstall_plugins = get_option( 'uninstall_plugins' );
    18671867                        delete_option( 'uninstall_plugins' );
    1868                         add_option( 'uninstall_plugins', $uninstall_plugins, null, false );
     1868                        add_option( 'uninstall_plugins', $uninstall_plugins, '', false );
    18691869                }
    18701870        }
Note: See TracChangeset for help on using the changeset viewer.