Make WordPress Core


Ignore:
Timestamp:
12/11/2015 10:48:49 PM (9 years ago)
Author:
afercia
Message:

When editing terms, properly display an admin notice-warning when tag_ID is empty.

Also, avoids two related PHP notices when empty or not set (and thus the global $tag is a WP_Error object).

Fixes: #34515.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-tag-form.php

    r34319 r35875  
    1212
    1313if ( empty($tag_ID) ) { ?>
    14     <div id="message" class="updated notice is-dismissible"><p><strong><?php _e( 'You did not select an item for editing.' ); ?></strong></p></div>
     14<div class="wrap">
     15    <h1><?php echo $tax->labels->edit_item; ?></h1>
     16    <div id="message" class="notice notice-warning"><p><strong><?php _e( 'You did not select an item for editing.' ); ?></strong></p></div>
     17</div>
    1518<?php
    1619    return;
Note: See TracChangeset for help on using the changeset viewer.