← All changes
|
lib/compat/wordpress-7.0/class-wp-rest-icons-controller.php
+1
-1
23.6.2
→
22.7.0
View file →
| @@ -35,9 +35,9 @@ | ||
| 35 | 35 | ); |
| 36 | 36 | |
| 37 | 37 | register_rest_route( |
| 38 | 38 | $this->namespace, |
| 39 | - '/' . $this->rest_base . '/(?P<name>[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?/[a-z0-9](?:[a-z0-9_-]*[a-z0-9])?)', | |
| 39 | + '/' . $this->rest_base . '/(?P<name>[a-z][a-z0-9-]*/[a-z][a-z0-9-]*)', | |
| 40 | 40 | array( |
| 41 | 41 | 'args' => array( |
| 42 | 42 | 'name' => array( |
| 43 | 43 | 'description' => __( 'Icon name.', 'gutenberg' ), |