Changeset 13442
- Timestamp:
- 04/03/2024 06:52:32 AM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php
r12919 r13442 846 846 847 847 $request = array(); 848 if ( get_query_var( 'browse' ) ) {848 if ( get_query_var( 'browse' ) && is_string( get_query_var( 'browse' ) ) ) { 849 849 $request['browse'] = get_query_var( 'browse' ); 850 850 … … 853 853 } 854 854 855 } else if ( get_query_var( 'tag' ) ) {855 } else if ( get_query_var( 'tag' ) && is_string( get_query_var( 'tag' ) ) ) { 856 856 $request['tag'] = (array) explode( '+', get_query_var( 'tag' ) ); 857 857 858 } else if ( get_query_var( 's' ) ) {858 } else if ( get_query_var( 's' ) && is_string( get_query_var( 's' ) ) ) { 859 859 $request['search'] = get_query_var( 's' ); 860 860 … … 863 863 864 864 } else if ( get_query_var( 'name' ) || get_query_var( 'pagename' ) ) { 865 $request['theme'] = basename( get_query_var( 'name' ) ?: get_query_var( 'pagename' ) ); 865 $name = get_query_var( 'name' ) ?: get_query_var( 'pagename' ); 866 if ( is_string( $name ) ) { 867 $request['theme'] = basename( $name ); 868 } 866 869 } 867 870 868 871 if ( get_query_var( 'paged' ) ) { 869 $request['page'] = (int) get_query_var( 'paged' );872 $request['page'] = (int) get_query_var( 'paged' ); 870 873 } 871 874 … … 924 927 function wporg_themes_theme_information( $slug ) { 925 928 return wporg_themes_query_api( 'theme_information', array( 926 'slug' => $slug,929 'slug' => $slug, 927 930 'fields' => array( 928 931 'description' => true,
Note: See TracChangeset
for help on using the changeset viewer.