[wp-meta] [Making WordPress.org] #5995: Theme Block Pattern Demo

Making WordPress.org noreply at wordpress.org
Wed Jul 6 13:33:01 UTC 2022

#5995: Theme Block Pattern Demo
 Reporter:  courane01        |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:
Component:  Theme Directory  |  Resolution:
 Keywords:                   |

Comment (by dufresnesteven):

 I have uploaded a 2 patches:

 In [attachment:5995.add_to_db.patch 5995.add_to_db.patch], I've added code
 that will save a meta value called `_patterns` which is an array of
 patterns taken from a `theme.json` file. @poena suggested, these are
 patterns that are currently hosted in the pattern directory.

 In [attachment:5995.patch 5995.patch] I've added a more robust solution
 where the patterns are then added to `theme-single.php` and the
 accompanying JS code and displayed. I decided to put very little effort
 into the design seeing that the theme directory itself is subject to
 potentially significant changes in the new wordpress.org redesign project
 that appears to be taking shape. I also think taking a minimal strategy at
 first is best until we build out more sophisticated ways to identify
 patterns in themes.

 The outcome of [attachment:5995.patch 5995.patch] looks like:
 [[Image(Screen Shot 2022-07-06 at 10.04.42 PM.png)]]

 What do ya'll think?

Ticket URL: <https://meta.trac.wordpress.org/ticket/5995#comment:4>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org

More information about the wp-meta mailing list