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

Install parent-theme-2021, which is required by translation events #7

Merged
merged 5 commits into from
Jun 13, 2024

Conversation

psrpinto
Copy link
Member

@psrpinto psrpinto commented Jun 12, 2024

This PR makes it so that the pull_repos.sh script also pulls the wporg-parent-2021 theme, and the provision.sh script links in under wp-content/themes.

This theme is required by translation events. It is already present on the production environment.

@psrpinto psrpinto self-assigned this Jun 12, 2024
@psrpinto psrpinto changed the title Intall parent-theme-2021, which is required by translation events Jun 12, 2024
@psrpinto psrpinto marked this pull request as ready for review June 12, 2024 13:30
@psrpinto psrpinto marked this pull request as draft June 12, 2024 14:17
@psrpinto psrpinto marked this pull request as ready for review June 12, 2024 14:33
Copy link
Member

@akirk akirk 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 some reason the original theme activation was wrong, I committed a little fix.

@akirk akirk merged commit b84f1ec into main Jun 13, 2024
@akirk akirk deleted the install-parent-theme-2021 branch June 13, 2024 08:23
@@ -249,7 +249,7 @@ fi
# Enable the rosetta theme
# To see the available themes, execute: npm run wp-env run cli wp theme list
print_header "Enabling the wporg theme"
$WP_CLI_PREFIX wp theme activate pub $WP_CLI_SUFFIX
$WP_CLI_PREFIX wp theme activate pub/wporg $WP_CLI_SUFFIX
Copy link
Member Author

@psrpinto psrpinto Jun 14, 2024

Choose a reason for hiding this comment

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

@akirk I think this needs to be just pub, this change was introduced in e0ca227.

If you do wp theme list, the theme is named pub, I believe,

Copy link
Member

Choose a reason for hiding this comment

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

Oh, then this is a difference between LAMP and wp-env. Maybe we can get them the same via changing the mapping

Copy link
Member

Choose a reason for hiding this comment

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

pub/wporg is closer to what the real WordPress.org structure is

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, that makes sense, I'll look into it.

Copy link
Member

Choose a reason for hiding this comment

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

I've pushed the necessary change, could you try if it still works in wp-env?

Copy link
Member

@akirk akirk Jun 14, 2024

Choose a reason for hiding this comment

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

I realized I had already merged it on Github, so I pushed the changes to the branch and re-merged it locally. So the change is already in main, committed via af0f924

Copy link
Member Author

Choose a reason for hiding this comment

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

It works, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants