Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blog ID is now nullable #3

Merged
merged 6 commits into from
Jan 6, 2022
Merged

Conversation

XedinUnknown
Copy link
Member

When null is specified, the current blog ID will be used every time.

When null is specified, the current blog ID will be used every time.
@XedinUnknown XedinUnknown added this to the v0.1 milestone Jan 6, 2022
@XedinUnknown XedinUnknown self-assigned this Jan 6, 2022
I18n method now allows null values.
Psalm complains that a `null` value is passed where an `int` blog ID is accepted. But that's just because of the _documented_ type in WP code's PHPDoc. In reality, these methods also accept a `null` value to mean "current blog ID", and this is documented in natural language in the official docs, and indeed is supported by the implementation.
@XedinUnknown XedinUnknown merged commit ddfbaed into 0.1.x Jan 6, 2022
@XedinUnknown XedinUnknown deleted the task/allow-current-blog-options branch January 6, 2022 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant