WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/05/2008 05:08:13 PM (14 years ago)
Author:
ryan
Message:

Add editable_slug filter. Props nbachiyski. see #6915

File:
1 edited

Legend:

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

    r7891 r7896  
    3232        <tr class="form-field">
    3333            <th scope="row" valign="top"><label for="category_nicename"><?php _e('Category Slug') ?></label></th>
    34             <td><input name="category_nicename" id="category_nicename" type="text" value="<?php echo attribute_escape($category->slug); ?>" size="40" /><br />
     34            <td><input name="category_nicename" id="category_nicename" type="text" value="<?php echo attribute_escape(apply_filters('editable_slug', $category->slug)); ?>" size="40" /><br />
    3535            <?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>
    3636        </tr>
Note: See TracChangeset for help on using the changeset viewer.