Skip to content

Accept null params from WP Core for isProtectedMeta - #461

Merged
galbus merged 1 commit into
mainfrom
s-7789-wordpress-error-since-upgradeing-to-v6
Nov 25, 2025
Merged

Accept null params from WP Core for isProtectedMeta#461
galbus merged 1 commit into
mainfrom
s-7789-wordpress-error-since-upgradeing-to-v6

Conversation

@galbus

@galbus galbus commented Nov 25, 2025

Copy link
Copy Markdown
Contributor

The is_protected_meta WordPress filter can pass null as the first argument, but the method has a strict bool type hint.

The method has been updated to accept nullable values for either argument.

@linear

linear Bot commented Nov 25, 2025

Copy link
Copy Markdown
@galbus galbus self-assigned this Nov 25, 2025
@galbus galbus added the bug label Nov 25, 2025
@galbus galbus added the php Pull requests that update Php code label Nov 25, 2025
@galbus
galbus merged commit 9d8c31d into main Nov 25, 2025
10 checks passed
@galbus
galbus deleted the s-7789-wordpress-error-since-upgradeing-to-v6 branch November 25, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug php Pull requests that update Php code

2 participants