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

Terms: Use $query_vars['parent'] even when equals 0 #2344

Merged
merged 5 commits into from
Sep 21, 2021
Merged

Conversation

felipeelia
Copy link
Member

Description of the Change

Currently, we are using if ( ! empty( $query_vars['parent'] ) ) { which isn't true when parent = 0. This PR changes the test to use isset() instead.

Applicable Issues

Closes #2232

Changelog Entry

@felipeelia felipeelia self-assigned this Sep 10, 2021
@felipeelia felipeelia added this to the 3.6.3 milestone Sep 10, 2021
Copy link
Contributor

@oscarssanchez oscarssanchez left a comment

Choose a reason for hiding this comment

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

LGTM. Some WP acceptance tests are failing but seems unrelated to the change.

@felipeelia felipeelia merged commit a1c02b2 into develop Sep 21, 2021
@felipeelia felipeelia deleted the fix/issue-2232 branch September 21, 2021 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: When using get_terms it doesn't obey parent = 0
2 participants