Skip to content

Accept null params from WP Core for isProtectedMeta#461

Merged
galbus merged 1 commit intomainfrom
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 intomainfrom
s-7789-wordpress-error-since-upgradeing-to-v6

Conversation

@galbus
Copy link
Copy Markdown
Contributor

@galbus galbus commented Nov 25, 2025

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
Copy link
Copy Markdown

linear bot commented Nov 25, 2025

@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants