WordPress.org

Make WordPress Core

Ticket #10131: upload.patch

File upload.patch, 471 bytes (added by mrmist, 5 years ago)

patch for notices in ticket #10223

  • wp-admin/upload.php

     
    267267                continue; 
    268268        $arc_row->mmonth = zeroise( $arc_row->mmonth, 2 ); 
    269269 
    270         if ( $arc_row->yyear . $arc_row->mmonth == $_GET['m'] ) 
     270        if ( isset($_GET['m']) && ( $arc_row->yyear . $arc_row->mmonth == $_GET['m'] )) 
    271271                $default = ' selected="selected"'; 
    272272        else 
    273273                $default = '';