Changeset 31041
- Timestamp:
- 01/04/2015 02:06:04 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/upload.php
r31037 r31041 27 27 28 28 $vars = wp_edit_attachments_query_vars(); 29 unset( $vars['mode'], $vars['post_type'], $vars['post_status'], $vars['posts_per_page'] ); 29 $ignore = array( 'mode', 'post_type', 'post_status', 'posts_per_page' ); 30 foreach ( $vars as $key => $value ) { 31 if ( ! $value || in_array( $key, $ignore ) ) { 32 unset( $vars[ $key ] ); 33 } 34 } 30 35 31 36 wp_localize_script( 'media-grid', '_wpMediaGridSettings', array( 32 37 'adminUrl' => parse_url( self_admin_url(), PHP_URL_PATH ), 33 'queryVars' => $vars38 'queryVars' => (object) $vars 34 39 ) ); 35 40
Note: See TracChangeset
for help on using the changeset viewer.