Add editable_slug filter. Props nbachiyski. see #6915

git-svn-id: https://develop.svn.wordpress.org/trunk@7896 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-05-05 17:08:13 +00:00
parent b8799eb470
commit fec6cabd09
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ if ( ! empty($cat_ID) ) {
</tr>
<tr class="form-field">
<th scope="row" valign="top"><label for="slug"><?php _e('Category slug') ?></label></th>
<td><input name="slug" id="slug" type="text" value="<?php echo $category->slug; ?>" size="40" />
<td><input name="slug" id="slug" type="text" value="<?php echo attribute_escape(apply_filters('editable_slug', $category->slug)); ?>" size="40" />
<?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>
</tr>
<tr class="form-field">