Changeset 12847
- Timestamp:
- 08/17/2023 05:28:09 AM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/standalone/class-plugins-info-api.php
r12846 r12847 106 106 107 107 // Short circuit for invalid slugs. 108 if ( ! $request->slug || ! preg_match( '/^[a-z0-9 -]+$/', $request->slug ) ) {108 if ( ! $request->slug || ! preg_match( '/^[a-z0-9_-]+$/', $request->slug ) ) { 109 109 $response = [ 110 110 'error' => 'Invalid plugin slug.'
Note: See TracChangeset
for help on using the changeset viewer.