WordPress.org

Make WordPress Core

Ticket #9656: missing.filters.for.values.in.edit-link-category-form.php.patch

File missing.filters.for.values.in.edit-link-category-form.php.patch, 2.0 KB (added by Simek, 9 years ago)
  • edit-link-category-form.php

     
    6363        <table class="form-table">
    6464                <tr class="form-field form-required">
    6565                        <th scope="row" valign="top"><label for="name"><?php _e('Link Category name') ?></label></th>
    66                         <td><input name="name" id="name" type="text" value="<?php echo $category->name; ?>" size="40" aria-required="true" /></td>
     66                        <td><input name="name" id="name" type="text" value="<?php echo attribute_escape($category->name); ?>" size="40" aria-required="true" /></td>
    6767                </tr>
    6868                <tr class="form-field">
    6969                        <th scope="row" valign="top"><label for="slug"><?php _e('Link Category slug') ?></label></th>
    70                         <td><input name="slug" id="slug" type="text" value="<?php echo attribute_escape(apply_filters('editable_slug', $category->slug)); ?>" size="40" /><br />
    71             <?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.'); ?></td>
     70                        <td>
     71                                <input name="slug" id="slug" type="text" value="<?php echo attribute_escape(apply_filters('editable_slug', $category->slug)); ?>" size="40" /><br />
     72                                <?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.'); ?>
     73                        </td>
    7274                </tr>
    7375                <tr class="form-field">
    7476                        <th scope="row" valign="top"><label for="description"><?php _e('Description (optional)') ?></label></th>
    75                         <td><textarea name="description" id="description" rows="5" cols="50" style="width: 97%;"><?php echo $category->description; ?></textarea></td>
     77                        <td>
     78                                <textarea name="description" id="description" rows="5" cols="50" style="width: 97%;">
     79                                        <?php echo wp_specialchars($category->description); ?>
     80                                </textarea>
     81                        </td>
    7682                </tr>
    7783        </table>
    7884<p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php echo $submit_text ?>" /></p>