Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
d453c19
Backports from lib/compat/wordpress-6.0/block-patterns-update.php
hellofromtonya Mar 31, 2022
3163816
Backports from lib/compat/wordpress-6.0/blocks.php.
hellofromtonya Mar 31, 2022
e51fd0c
Backporting latest changes from https://github.com/WordPress/gutenber…
hellofromtonya Apr 4, 2022
b081331
Backport lib/compat/wordpress-6.0/block-patterns.php.
hellofromtonya Apr 6, 2022
cde5c14
Backports /lib/compat/wordpress-6.0/class-gutenberg-rest-pattern-dire…
hellofromtonya Apr 6, 2022
fef0000
Backport lib/compat/wordpress-6.0/class-wp-rest-block-patterns-contro…
hellofromtonya Apr 6, 2022
c658eb8
/lib/compat/wordpress-6.0/class-wp-rest-block-pattern-categories-cont…
hellofromtonya Apr 6, 2022
e22f662
Backports new test classes.
hellofromtonya Apr 6, 2022
ceedc0a
Load files, use stable namespace, register routes, girl scouting.
ironprogrammer Apr 7, 2022
a3d71fb
Fix instance property reflection error in tests.
hellofromtonya Apr 7, 2022
a7d1560
Fix phpcs whitespace at end of line.
hellofromtonya Apr 7, 2022
d7b77aa
Fixes expected query results of Tests_Blocks_wpBlock::test_build_quer…
hellofromtonya Apr 7, 2022
fec3207
Fix arrow alignment in test for phpcs.
hellofromtonya Apr 7, 2022
6fbf8e5
Adds new endpoints to schema setup test.
hellofromtonya Apr 7, 2022
0af2058
Backport new WP_Theme_JSON::get_patterns() method.
hellofromtonya Apr 7, 2022
a3e5009
Fixes Tests_REST_WpRestBlockPatternsController::test_get_items() test.
hellofromtonya Apr 7, 2022
f5c57d0
Add reference to existing DocBlock for filter
ironprogrammer Apr 11, 2022
faa6dd2
Updates errors to `_doing_it_wrong`s
ironprogrammer Apr 11, 2022
c5994cd
Add `edit` context for consistency
ironprogrammer Apr 11, 2022
39ea1e3
Add `edit` context for consistency
ironprogrammer Apr 11, 2022
dcfe4f5
Add `edit` context for consistency
ironprogrammer Apr 11, 2022
820ee72
Verify that patterns subdirectory is readable
ironprogrammer Apr 11, 2022
f7ce952
Add capability check tests for `block-patterns/categories`
ironprogrammer Apr 11, 2022
0b89e42
Add capability check tests for `block-patterns/patterns`
ironprogrammer Apr 11, 2022
cb7aa97
Add @ticket annotation to new unit test classes
ironprogrammer Apr 12, 2022
78520bc
Remove the method that is already backported to core
gziolo Apr 12, 2022
1cf64fc
Update the failing unit test
gziolo Apr 12, 2022
c3f08b2
Update rest-pattern-directory-controller.php
gziolo Apr 12, 2022
dc11e68
Update wp-api-generated.js
gziolo Apr 12, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove the method that is already backported to core
  • Loading branch information
gziolo authored Apr 12, 2022
commit 78520bc5b3fde42490a4d0c22e448a9bab3ac688
15 changes: 0 additions & 15 deletions src/wp-includes/class-wp-theme-json.php
Original file line number Diff line number Diff line change
Expand Up @@ -759,21 +759,6 @@ public function get_template_parts() {
return $template_parts;
}

/**
* Returns the current theme's wanted patterns(slugs) to be registered from
* Pattern Directory.
*
* @since 6.0.0
*
* @return array Array of patterns if configured, else empty array.
*/
public function get_patterns() {
if ( isset( $this->theme_json['patterns'] ) && is_array( $this->theme_json['patterns'] ) ) {
return $this->theme_json['patterns'];
}
return array();
}

/**
* Converts each style section into a list of rulesets
* containing the block styles to be appended to the stylesheet.
Expand Down