WordPress.org

Make WordPress Core

Ticket #4529: edit-pages.diff

File edit-pages.diff, 1.9 KB (added by mrmist, 5 years ago)

Fix for notices in edit-pages

  • wp-admin/edit-pages.php

     
    251251<div class="alignleft actions"> 
    252252<select name="action"> 
    253253<option value="-1" selected="selected"><?php _e('Bulk Actions'); ?></option> 
    254 <?php if ($_GET['post_status'] == 'trash') { ?> 
     254<?php if (isset($_GET['post_status']) &&  $_GET['post_status'] == 'trash') { ?> 
    255255<option value="untrash"><?php _e('Restore'); ?></option> 
    256256<option value="delete"><?php _e('Delete Permanently'); ?></option> 
    257257<?php } else { ?> 
     
    261261</select> 
    262262<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" /> 
    263263<?php wp_nonce_field('bulk-pages'); ?> 
    264 <?php if ($_GET['post_status'] == 'trash') { ?> 
     264<?php if (isset($_GET['post_status']) &&  $_GET['post_status'] == 'trash') { ?> 
    265265<input type="submit" name="delete_all" id="delete_all" value="<?php esc_attr_e('Empty Trash'); ?>" class="button-secondary apply" /> 
    266266<?php } ?> 
    267267</div> 
     
    298298<div class="alignleft actions"> 
    299299<select name="action2"> 
    300300<option value="-1" selected="selected"><?php _e('Bulk Actions'); ?></option> 
    301 <?php if ($_GET['post_status'] == 'trash') { ?> 
     301<?php if (isset($_GET['post_status']) &&  $_GET['post_status'] == 'trash') { ?> 
    302302<option value="untrash"><?php _e('Restore'); ?></option> 
    303303<option value="delete"><?php _e('Delete Permanently'); ?></option> 
    304304<?php } else { ?> 
     
    307307<?php } ?> 
    308308</select> 
    309309<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" /> 
    310 <?php if ($_GET['post_status'] == 'trash') { ?> 
     310<?php if (isset($_GET['post_status']) &&  $_GET['post_status'] == 'trash') { ?> 
    311311<input type="submit" name="delete_all2" id="delete_all2" value="<?php esc_attr_e('Empty Trash'); ?>" class="button-secondary apply" /> 
    312312<?php } ?> 
    313313</div>