Make WordPress Core

Ticket #31569: 31569.diff

File 31569.diff, 952 bytes (added by DrewAPicture, 10 years ago)
  • src/wp-admin/edit-tag-form.php

     
    9595                         *
    9696                         * @since 2.6.0
    9797                         *
    98                          * @param string $slug The current term slug.
     98                         * @param string $tag_slug The current term slug.
    9999                         */
     100                        $slug = isset( $tag->slug ) ? apply_filters( 'editable_slug', $tag->slug ) : '';
    100101                        ?>
    101                         <td><input name="slug" id="slug" type="text" value="<?php if ( isset( $tag->slug ) ) echo esc_attr( apply_filters( 'editable_slug', $tag->slug ) ); ?>" size="40" />
     102                        <td><input name="slug" id="slug" type="text" value="<?php echo esc_attr( $slug ); ?>" size="40" />
    102103                        <p class="description"><?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>
    103104                </tr>
    104105<?php } ?>