- Timestamp:
- 12/14/2021 06:22:07 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php
r52345 r52376 69 69 register_rest_route( 70 70 $this->namespace, 71 '/' . $this->rest_base . '/(?P<id>[\/\ w-]+)',71 '/' . $this->rest_base . '/(?P<id>[\/\s%\w\.\(\)\[\]\@_\-]+)', 72 72 array( 73 73 'args' => array( … … 150 150 */ 151 151 public function _sanitize_template_id( $id ) { 152 // Decode empty space. 153 $id = urldecode( $id ); 154 152 155 $last_slash_pos = strrpos( $id, '/' ); 153 156 if ( false === $last_slash_pos ) {
Note: See TracChangeset
for help on using the changeset viewer.