File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
tests/phpunit/tests/rest-api Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,7 @@ public function test_expected_routes_in_schema() {
195195 '/wp/v2/font-families/(?P<font_family_id>[\d]+)/font-faces ' ,
196196 '/wp/v2/font-families/(?P<font_family_id>[\d]+)/font-faces/(?P<id>[\d]+) ' ,
197197 '/wp/v2/font-families/(?P<id>[\d]+) ' ,
198+ '/wp-abilities/v1 ' ,
198199 '/wp-abilities/v1/abilities/(?P<name>[a-zA-Z0-9\-\/]+?)/run ' ,
199200 '/wp-abilities/v1/abilities/(?P<name>[a-zA-Z0-9\-\/]+) ' ,
200201 '/wp-abilities/v1/abilities ' ,
@@ -208,7 +209,8 @@ private function is_builtin_route( $route ) {
208209 '/ ' === $ route ||
209210 preg_match ( '#^/oembed/1\.0(/.+)?$# ' , $ route ) ||
210211 preg_match ( '#^/wp/v2(/.+)?$# ' , $ route ) ||
211- preg_match ( '#^/wp-site-health/v1(/.+)?$# ' , $ route )
212+ preg_match ( '#^/wp-site-health/v1(/.+)?$# ' , $ route ) ||
213+ preg_match ( '#^/wp-abilities/v1(/.+)?$# ' , $ route )
212214 );
213215 }
214216
You can’t perform that action at this time.
0 commit comments