WordPress.org

Make WordPress Core

Ticket #10223: upload.patch

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

fix for wp-admin upload.php

  • 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 = '';