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

Archeo: Load patterns automatically #5715

Merged
merged 9 commits into from
Apr 1, 2022
Merged

Archeo: Load patterns automatically #5715

merged 9 commits into from
Apr 1, 2022

Conversation

scruffian
Copy link
Member

Changes proposed in this Pull Request:

Loads the patterns for Archeo automatically based on https://github.com/WordPress/gutenberg/pull/36751/files

Related issue(s):

https://github.com/WordPress/gutenberg/pull/36751/files

@scruffian scruffian added the [Theme] Archeo Automatically generated label for Archeo. label Mar 21, 2022
@scruffian scruffian requested a review from a team March 21, 2022 13:18
@scruffian scruffian self-assigned this Mar 21, 2022
@MaggieCabrera
Copy link
Contributor

This will land in .com in 12.9

@MaggieCabrera
Copy link
Contributor

This is looking good! I just have minor comments, thanks for doing this

@mikachan
Copy link
Member

I've removed inc/block-patterns.php and moved the code into functions.php, and then I've updated two patterns which have since been updated on trunk. I think this is ready for another review.

Copy link
Contributor

@jffng jffng left a comment

Choose a reason for hiding this comment

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

Very cool, working as advertised.

I did notice that some of the patterns load in a random order in the inserter, check out the Images category and notice how a couple Archeo patterns come first, followed by Gutenberg default patterns, then more Archeo patterns. Is there a way to have the theme's always appear first?

archeo/functions.php Outdated Show resolved Hide resolved
Co-authored-by: Jeff Ong <jonger4@gmail.com>
@mikachan
Copy link
Member

I did notice that some of the patterns load in a random order in the inserter, check out the Images category and notice how a couple Archeo patterns come first, followed by Gutenberg default patterns, then more Archeo patterns. Is there a way to have the theme's always appear first?

Oh yeah, I can see the same. It doesn't look like they're listed alphabetically, plus I tried adding numbers to the start of the Archeo pattern titles but it didn't seem to make a difference to the order.

# Conflicts:
#	archeo/inc/patterns/simple-list-of-posts-with-background.php
@mikachan
Copy link
Member

Just spotted @MaggieCabrera has already opened up an issue to address the pattern order: WordPress/gutenberg#39500

I'm going to move this into Approved but not mergeable, as I think it's ready to go when 12.9 lands.

@mikachan mikachan merged commit 72b6810 into trunk Apr 1, 2022
@mikachan mikachan deleted the update/archeo-patterns branch April 1, 2022 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Theme] Archeo Automatically generated label for Archeo.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants