Changeset 47550 for trunk/src/wp-admin/upload.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/upload.php
r47233 r47550 17 17 $modes = array( 'grid', 'list' ); 18 18 19 if ( isset( $_GET['mode'] ) && in_array( $_GET['mode'], $modes ) ) {19 if ( isset( $_GET['mode'] ) && in_array( $_GET['mode'], $modes, true ) ) { 20 20 $mode = $_GET['mode']; 21 21 update_user_option( get_current_user_id(), 'media_library_mode', $mode ); … … 35 35 $ignore = array( 'mode', 'post_type', 'post_status', 'posts_per_page' ); 36 36 foreach ( $vars as $key => $value ) { 37 if ( ! $value || in_array( $key, $ignore ) ) {37 if ( ! $value || in_array( $key, $ignore, true ) ) { 38 38 unset( $vars[ $key ] ); 39 39 }
Note: See TracChangeset
for help on using the changeset viewer.