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-includes/admin-bar.php

    r35749 r35875  
    575575            }
    576576        } elseif ( 'edit-tags' == $current_screen->base
    577             && isset( $tag ) && is_object( $tag )
     577            && isset( $tag ) && is_object( $tag ) && ! is_wp_error( $tag )
    578578            && ( $tax = get_taxonomy( $tag->taxonomy ) )
    579579            && $tax->public )
Note: See TracChangeset for help on using the changeset viewer.