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

Enable per-site setup for permalink structure #661

Merged
merged 1 commit into from
Sep 28, 2016

Conversation

fullyint
Copy link
Contributor

Fixes #660


- name: Setup Permalink Structure
command: wp rewrite structure {{ item.value.initial_permalink_structure | default("/%postname%/") }} --allow-root
command: wp rewrite structure {{ wordpress_sites[item.item.key].initial_permalink_structure | default("/%postname%/") }} --allow-root
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm going to push a commit that changes the two instances of wordpress_sites[item.item.key] to item.item.value. That should be simpler and more closely resemble the existing code. We'll want to squash before merging.

I failed to consider that the values needed were contained in the registered variable, so we don't need to call on the wordpress_sites dict.

@swalkinshaw
Copy link
Member

Changelog? Then 🚀

Looks way better 👍

@swalkinshaw swalkinshaw merged commit ceb338a into master Sep 28, 2016
@swalkinshaw swalkinshaw deleted the permalinks-per-site branch September 28, 2016 23:18
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.

2 participants