Make WordPress Core


Ignore:
Timestamp:
08/14/2008 05:00:37 PM (18 years ago)
Author:
ryan
Message:

Notice fixes. Props DD32. see #7509

File:
1 edited

Legend:

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

    r8600 r8646  
    344344    $posts_columns = array();
    345345    $posts_columns['cb'] = '<input type="checkbox" />';
    346     if ( 'draft' === $_GET['post_status'] )
     346    if ( isset($_GET['post_status']) && 'draft' === $_GET['post_status'] )
    347347        $posts_columns['modified'] = __('Modified');
    348     elseif ( 'pending' === $_GET['post_status'] )
     348    elseif ( isset($_GET['post_status']) && 'pending' === $_GET['post_status'] )
    349349        $posts_columns['modified'] = __('Submitted');
    350350    else
     
    354354    $posts_columns['categories'] = __('Categories');
    355355    $posts_columns['tags'] = __('Tags');
    356     if ( !in_array($_GET['post_status'], array('pending', 'draft', 'future')) )
     356    if ( !isset($_GET['post_status']) || !in_array($_GET['post_status'], array('pending', 'draft', 'future')) )
    357357        $posts_columns['comments'] = '<div class="vers"><img alt="Comments" src="images/comment-grey-bubble.png" /></div>';
    358358    $posts_columns['status'] = __('Status');
     
    10931093function wp_dropdown_roles( $default = false ) {
    10941094    global $wp_roles;
     1095    $p = '';
    10951096    $r = '';
    10961097    foreach( $wp_roles->role_names as $role => $name ) {
Note: See TracChangeset for help on using the changeset viewer.