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/edit-pages.php

    r8484 r8589  
    9090        continue;
    9191
    92     if ( $status == $_GET['post_status'] )
     92    if ( isset( $_GET['post_status'] ) && $status == $_GET['post_status'] )
    9393        $class = ' class="current"';
    9494
     
    120120
    121121<?php
    122 $pagenum = absint( $_GET['pagenum'] );
     122$pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 0;
    123123if ( empty($pagenum) )
    124124    $pagenum = 1;
    125 if( !$per_page || $per_page < 0 )
     125if( ! isset( $per_page ) || $per_page < 0 )
    126126    $per_page = 20;
    127127
Note: See TracChangeset for help on using the changeset viewer.