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

git-svn-id: http://svn.automattic.com/wordpress/trunk@8589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi
2008-08-08 17:05:10 +00:00
parent 5a692699b4
commit b3cb14fb80
16 changed files with 119 additions and 48 deletions

View File

@@ -89,7 +89,7 @@ foreach ( $post_stati as $status => $label ) {
if ( !in_array($status, $avail_post_stati) )
continue;
if ( $status == $_GET['post_status'] )
if ( isset( $_GET['post_status'] ) && $status == $_GET['post_status'] )
$class = ' class="current"';
$status_links[] = "<li><a href=\"edit-pages.php?post_status=$status\"$class>" .
@@ -119,10 +119,10 @@ endif;
<div class="tablenav">
<?php
$pagenum = absint( $_GET['pagenum'] );
$pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 0;
if ( empty($pagenum) )
$pagenum = 1;
if( !$per_page || $per_page < 0 )
if( ! isset( $per_page ) || $per_page < 0 )
$per_page = 20;
$num_pages = ceil(count($posts) / $per_page);