Ticket #5607: remove_admin_notices13.diff
File remove_admin_notices13.diff, 2.2 KB (added by , 17 years ago) |
---|
-
wp-admin/link-add.php
16 16 require('admin-header.php'); 17 17 ?> 18 18 19 <?php if ( $_GET['added']&& '' != $_POST['link_name']) : ?>19 <?php if ( ! empty($_GET['added']) && '' != $_POST['link_name']) : ?> 20 20 <div id="message" class="updated fade"><p><?php _e('Link added.'); ?></p></div> 21 21 <?php endif; ?> 22 22 -
wp-admin/edit.php
4 4 $title = __('Posts'); 5 5 $parent_file = 'edit.php'; 6 6 wp_enqueue_script( 'admin-posts' ); 7 if ( 1 == $_GET['c'] )7 if ( isset($_GET['c']) && 1 == $_GET['c'] ) 8 8 wp_enqueue_script( 'admin-comments' ); 9 9 require_once('admin-header.php'); 10 10 … … 25 25 if ( is_single() ) { 26 26 printf(__('Comments on %s'), apply_filters( "the_title", $post->post_title)); 27 27 } else { 28 if ( $post_listing_pageable && !is_archive() && !is_search() )28 if ( isset($post_listing_pageable) && $post_listing_pageable && !is_archive() && !is_search() ) 29 29 $h2_noun = is_paged() ? sprintf(__( 'Previous %s' ), $post_status_label) : sprintf(__('Latest %s'), $post_status_label); 30 30 else 31 $h2_noun = $post_status_label;31 $h2_noun = ( isset($post_status_label) ) ? $post_status_label : null; 32 32 // Use $_GET instead of is_ since they can override each other 33 33 $h2_author = ''; 34 $_GET['author'] = ( int) $_GET['author'];34 $_GET['author'] = ( isset($_GET['author']) ) ? (int) $_GET['author'] : 0; 35 35 if ( $_GET['author'] != 0 ) { 36 36 if ( $_GET['author'] == '-' . $user_ID ) { // author exclusion 37 37 $h2_author = ' ' . __('by other authors'); … … 105 105 <?php } ?> 106 106 107 107 <fieldset><legend><?php _e('Category…') ?></legend> 108 <?php wp_dropdown_categories('show_option_all='.__('All').'&hide_empty=1&hierarchical=1&show_count=1&selected='. $cat);?>108 <?php wp_dropdown_categories('show_option_all='.__('All').'&hide_empty=1&hierarchical=1&show_count=1&selected='.((isset($cat))?$cat:0));?> 109 109 </fieldset> 110 110 <input type="submit" id="post-query-submit" value="<?php _e('Filter »'); ?>" class="button" /> 111 111 </form>