Make WordPress Core


Ignore:
Timestamp:
08/08/2008 05:05:10 PM (17 years ago)
Author:
westi
Message:

Lots of fixes for Notices when WP_DEBUG is set. See #6669 props santosj.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r8416 r8589  
    296296
    297297function media_upload_image() {
     298    $errors = array();
     299    $id = 0;
     300
    298301    if ( isset($_POST['html-upload']) && !empty($_FILES) ) {
    299302        // Upload File button was clicked
     
    360363
    361364function media_upload_audio() {
     365    $errors = array();
     366    $id = 0;
     367
    362368    if ( isset($_POST['html-upload']) && !empty($_FILES) ) {
    363369        // Upload File button was clicked
     
    400406
    401407function media_upload_video() {
     408    $errors = array();
     409    $id = 0;
     410
    402411    if ( isset($_POST['html-upload']) && !empty($_FILES) ) {
    403412        // Upload File button was clicked
     
    440449
    441450function media_upload_file() {
     451    $errors = array();
     452    $id = 0;
     453
    442454    if ( isset($_POST['html-upload']) && !empty($_FILES) ) {
    443455        // Upload File button was clicked
     
    480492
    481493function media_upload_gallery() {
     494    $errors = array();
     495
    482496    if ( !empty($_POST) ) {
    483497        $return = media_upload_form_handler();
     
    494508
    495509function media_upload_library() {
     510    $errors = array();
    496511    if ( !empty($_POST) ) {
    497512        $return = media_upload_form_handler();
     
    11281143    $form_action_url = admin_url("media-upload.php?type={$GLOBALS['type']}&tab=library&post_id=$post_id");
    11291144
    1130     $_GET['paged'] = intval($_GET['paged']);
     1145    $_GET['paged'] = isset( $_GET['paged'] ) ? intval($_GET['paged']) : 0;
    11311146    if ( $_GET['paged'] < 1 )
    11321147        $_GET['paged'] = 1;
Note: See TracChangeset for help on using the changeset viewer.