Revert [7887] see #6915.

git-svn-id: https://develop.svn.wordpress.org/trunk@7891 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2008-05-05 08:15:54 +00:00
parent 5c009833e4
commit b0ff8876f0
4 changed files with 3 additions and 7 deletions

View File

@ -31,7 +31,7 @@ if ( ! empty($cat_ID) ) {
</tr>
<tr class="form-field">
<th scope="row" valign="top"><label for="category_nicename"><?php _e('Category Slug') ?></label></th>
<td><input name="category_nicename" id="category_nicename" type="text" value="<?php echo attribute_escape(rawurldecode($category->slug)); ?>" size="40" /><br />
<td><input name="category_nicename" id="category_nicename" type="text" value="<?php echo attribute_escape($category->slug); ?>" size="40" /><br />
<?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">

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 rawurldecode($category->slug); ?>" size="40" />
<td><input name="slug" id="slug" type="text" value="<?php echo $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">

View File

@ -31,7 +31,7 @@ if ( ! empty($tag_ID) ) {
</tr>
<tr class="form-field">
<th scope="row" valign="top"><label for="slug"><?php _e('Tag slug') ?></label></th>
<td><input name="slug" id="slug" type="text" value="<?php echo attribute_escape(rawurldecode($tag->slug)); ?>" size="40" />
<td><input name="slug" id="slug" type="text" value="<?php echo attribute_escape($tag->slug); ?>" size="40" />
<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>
</tr>
</table>

View File

@ -642,10 +642,6 @@ function get_sample_permalink_html($id, $new_title=null, $new_slug=null) {
return '';
}
$title = __('Click to edit this part of the permalink');
// make %-encoded international names readable and therefore editable
$post_name = rawurldecode($post_name);
if (strlen($post_name) > 30) {
$post_name_abridged = substr($post_name, 0, 14). '&hellip;' . substr($post_name, -14);
} else {