Changeset 11295
- Timestamp:
- 10/23/2021 02:27:10 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-query-plugins.php
r11292 r11295 99 99 if ( 'slug:' === substr( $query['s'], 0, 5 ) ) { 100 100 $query['name'] = substr( $query['s'], 5 ); 101 } 102 103 if ( 'block:' === substr( $query['s'], 0, 6 ) ) { 101 unset( $query['s'], $query['block_search'] ); 102 } elseif ( 'block:' === substr( $query['s'], 0, 6 ) ) { 104 103 $query['meta_query'][] = [ 105 104 'key' => 'block_name', … … 115 114 // Prioritise block plugins, but try again without the restriction. 116 115 $try_again_without_tax_query = true; 116 unset( $query['s'], $query['block_search'] ); 117 117 } 118 119 unset( $query['s'], $query['block_search'] );120 118 } 121 119
Note: See TracChangeset
for help on using the changeset viewer.