- Timestamp:
- 05/27/2021 12:42:54 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/translations/plugins/1.0/index.php
r811 r10998 8 8 wp_cache_init(); 9 9 10 $slug = isset( $_REQUEST['slug'] ) ? $_REQUEST['slug']: '';10 $slug = isset( $_REQUEST['slug'] ) ? $_REQUEST['slug'] : ''; 11 11 $version = isset( $_REQUEST['version'] ) ? $_REQUEST['version'] : null; 12 13 foreach ( [ 'slug', 'version' ] as $field ) { 14 if ( $$field && ! is_string( $$field ) ) { 15 header( $_SERVER['SERVER_PROTOCOL'] . ' 400 Bad Request' ); 16 die( "?{$field}= invalid." ); 17 } 18 } 12 19 13 20 $translations = find_all_translations_for_type_and_domain( 'plugin', $slug, $version );
Note: See TracChangeset
for help on using the changeset viewer.