WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/14/2009 03:35:33 PM (9 years ago)
Author:
ryan
Message:

Notice fixes. Props Viper007Bond. fixes #9508

File:
1 edited

Legend:

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

    r10923 r10928  
    617617    }
    618618
    619     $theme = isset($_REQUEST['theme']) ? stripslashes( $_REQUEST['theme'] ) : '';
     619    $theme        = isset($_REQUEST['theme'])        ? stripslashes( $_REQUEST['theme'] )        : '';
     620    $theme_name   = isset($_REQUEST['theme_name'])   ? stripslashes( $_REQUEST['theme_name'] )   : '';
     621    $download_url = isset($_REQUEST['download_url']) ? stripslashes( $_REQUEST['download_url'] ) : '';
    620622
    621623    $url = 'theme-install.php?tab=install';
    622     $url = add_query_arg(array('theme' => $theme, 'theme_name' => stripslashes( $_REQUEST['theme_name'] ), 'download_url' => stripslashes( $_REQUEST['download_url'] ) ), $url);
     624    $url = add_query_arg(array('theme' => $theme, 'theme_name' => $theme_name, 'download_url' => $download_url ), $url);
    623625
    624626    $url = wp_nonce_url($url, 'install-theme_' . $theme);
Note: See TracChangeset for help on using the changeset viewer.