WordPress.org

Make WordPress Core

Ticket #10758: 10758-admin-upload.patch

File 10758-admin-upload.patch, 593 bytes (added by hakre, 5 years ago)
  • wp-admin/upload.php

     
    308308 
    309309        if ( $month_count && !( 1 == $month_count && 0 == $arc_result[0]->mmonth ) ) : ?> 
    310310<select name='m'> 
    311 <option<?php selected( @$_GET['m'], 0 ); ?> value='0'><?php _e('Show all dates'); ?></option> 
     311<option<?php selected(isset($_GET['m']) ? $_GET['m'] : null, 0); ?> value='0'><?php _e('Show all dates'); ?></option> 
    312312<?php 
    313313foreach ($arc_result as $arc_row) { 
    314314        if ( $arc_row->yyear == 0 )