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

Handle PHP Notice when get_post_type_object() returns null in is_post_type_archive() #3027

Closed

Conversation

srtfisher
Copy link

Trac ticket: https://core.trac.wordpress.org/ticket/56287


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

Copy link
Contributor

@costdev costdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR and unit tests! I've left some small change requests in this review.

.vscode/settings.json Outdated Show resolved Hide resolved
tests/phpunit/tests/query.php Outdated Show resolved Hide resolved
tests/phpunit/tests/query.php Outdated Show resolved Hide resolved
srtfisher and others added 2 commits August 15, 2022 15:06
Co-authored-by: Colin Stewart <79332690+costdev@users.noreply.github.com>
@srtfisher srtfisher requested a review from costdev August 15, 2022 19:06
@srtfisher
Copy link
Author

@costdev Thanks for the review! Changes made.

Copy link
Contributor

@costdev costdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR looks good to me provided manual testing works as expected. 👍

Copy link
Contributor

@audrasjb audrasjb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@audrasjb
Copy link
Contributor

@audrasjb audrasjb closed this Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants