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

Check for all returned posts in the post type handler instead of just the first one #866

Merged
merged 4 commits into from Sep 21, 2021

Conversation

nicholasio
Copy link
Collaborator

@nicholasio nicholasio commented Sep 14, 2021

What:

Fixes #865

Why:

It's standard WP behavior

How:

By checking all of the returned posts instead of just the first one.

Tasks:

Unrelated Tasks

  • TSDocs
  • TypeScript
  • End to end tests
  • TypeScript tests
  • Update starter themes
  • Update other packages
  • Update community discussions

Additional Comments

@changeset-bot
Copy link

changeset-bot bot commented Sep 14, 2021

🦋 Changeset detected

Latest commit: 6f9e797

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@luisherranz luisherranz left a comment

Choose a reason for hiding this comment

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

Hey, nice catch @nicholasio 🙂

The code looks great to me, but could you also add a unit test and a changelog?

Thanks! 😄

@nicholasio
Copy link
Collaborator Author

Hey, nice catch @nicholasio 🙂

The code looks great to me, but could you also add a unit test and a changelog?

Thanks! 😄

Sure I'll get this updated with a changelog and a couple of tests.

Copy link
Member

@luisherranz luisherranz left a comment

Choose a reason for hiding this comment

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

Looks perfect to me! Thanks a bunch, Nícholas 🙂👏

@luisherranz luisherranz merged commit 746f962 into dev Sep 21, 2021
@luisherranz luisherranz deleted the fix/child-pages-same-slug branch September 21, 2021 13:42
@SantosGuillamot SantosGuillamot mentioned this pull request Sep 22, 2021
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.

Child pages with same slug as top-level pages can result in 404.
2 participants