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

Adds example to change the permalink structure #50251

Merged

Conversation

mburridge
Copy link
Contributor

What?

Adds a new example to the wp-env page in the handbook showing how to change the permalink structure.

Why?

With a default spin up of wp-env the REST API is not available, this is because it defaults to plain permalinks. Problem described in #49373.

This PR provides documentation in the wp-env handbook page explaining how to easily enable the REST API when using wp-env, without having to do so via the permalinks admin page. Also it is not obvious that plain permalinks are the problem unless you already know that the REST API requires pretty permalinks to be enabled.

More generally it allows people to customise the permalink structure in a wp-env environment.

How?

Testing Instructions

Testing Instructions for Keyboard

Screenshots or screencast

@mburridge mburridge added [Type] Developer Documentation Documentation for developers Good First Review A PR that's suitable for someone looking to contribute for the first time by reviewing code Developer Experience Ideas about improving block and theme developer experience labels May 2, 2023
@mburridge mburridge requested a review from noahtallen as a code owner May 2, 2023 14:35
Copy link
Member

@ndiego ndiego left a comment

Choose a reason for hiding this comment

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

🚢

@mburridge mburridge merged commit 272a57e into WordPress:trunk May 2, 2023
@mburridge mburridge deleted the docs/add-rewrite-structure-example branch May 2, 2023 15:10
@github-actions github-actions bot added this to the Gutenberg 15.8 milestone May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Developer Experience Ideas about improving block and theme developer experience Good First Review A PR that's suitable for someone looking to contribute for the first time by reviewing code [Type] Developer Documentation Documentation for developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants