Changeset 57796
- Timestamp:
- 03/09/2024 06:05:27 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/upload.php
r56663 r57796 129 129 } 130 130 131 $mode = get_user_option( 'media_library_mode', get_current_user_id() ) ? get_user_option( 'media_library_mode', get_current_user_id() ) : 'grid';132 131 $modes = array( 'grid', 'list' ); 133 132 … … 135 134 $mode = $_GET['mode']; 136 135 update_user_option( get_current_user_id(), 'media_library_mode', $mode ); 136 } else { 137 $mode = get_user_option( 'media_library_mode', get_current_user_id() ) ? get_user_option( 'media_library_mode', get_current_user_id() ) : 'grid'; 137 138 } 138 139
Note: See TracChangeset
for help on using the changeset viewer.