Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

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?

@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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
[Theme] Archeo Automatically generated label for Archeo.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants