Make WordPress Core


Ignore:
Timestamp:
09/21/2008 08:41:25 PM (17 years ago)
Author:
westi
Message:

Notice fixes see #7509 props DD32 and jacobsantos.

File:
1 edited

Legend:

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

    r8656 r8944  
    3737        <tr class="form-field form-required">
    3838            <th scope="row" valign="top"><label for="name"><?php _e('Tag name') ?></label></th>
    39             <td><input name="name" id="name" type="text" value="<?php echo attribute_escape($tag->name); ?>" size="40" aria-required="true" />
     39            <td><input name="name" id="name" type="text" value="<?php if ( isset( $tag->name ) ) echo attribute_escape($tag->name); ?>" size="40" aria-required="true" />
    4040            <p><?php _e('The name is how the tag appears on your site.'); ?></p></td>
    4141        </tr>
    4242        <tr class="form-field">
    4343            <th scope="row" valign="top"><label for="slug"><?php _e('Tag slug') ?></label></th>
    44             <td><input name="slug" id="slug" type="text" value="<?php echo attribute_escape(apply_filters('editable_slug', $tag->slug)); ?>" size="40" />
     44            <td><input name="slug" id="slug" type="text" value="<?php if ( isset( $tag->slug ) ) echo attribute_escape(apply_filters('editable_slug', $tag->slug)); ?>" size="40" />
    4545            <p><?php _e('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p></td>
    4646        </tr>
Note: See TracChangeset for help on using the changeset viewer.