Changeset 3331 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-customizations.php
- Timestamp:
- 06/11/2016 08:21:45 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-customizations.php
r3327 r3331 173 173 if ( empty( $query->query['post_status'] ) ) { 174 174 $query->query_vars['post_status'] = array( 'publish', 'future', 'draft', 'pending', 'disabled', 'closed', 'rejected', 'approved' ); 175 } 176 177 // Make it possible to search for plugins that were submitted from a specific IP. 178 if ( current_user_can( 'plugin_review' ) && ! empty( $query->query['s'] ) && filter_var( $query->query['s'], FILTER_VALIDATE_IP ) ) { 179 $query->query_vars['meta_key'] = '_author_ip'; 180 $query->query_vars['meta_value'] = $query->query_vars['s']; 181 unset( $query->query_vars['s'] ); 182 183 add_filter( 'get_search_query', function() use ( $query ) { 184 return esc_html( $query->query_vars['meta_value'] ); 185 } ); 175 186 } 176 187
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)