Changeset 56019 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
- Timestamp:
- 06/24/2023 04:48:25 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r54891 r56019 1138 1138 1139 1139 // Unquote quoted filename, but after trimming. 1140 if ( s ubstr( $filename, 0, 1 ) === '"' && substr( $filename, -1, 1 ) === '"') {1140 if ( str_starts_with( $filename, '"' ) && str_ends_with( $filename, '"' ) ) { 1141 1141 $filename = substr( $filename, 1, -1 ); 1142 1142 }
Note: See TracChangeset
for help on using the changeset viewer.