Ticket #6915: urldecode-nicenames.patch
| File urldecode-nicenames.patch, 2.9 kB (added by options, 4 months ago) |
|---|
-
edit-category-form.php
old new 31 31 </tr> 32 32 <tr class="form-field"> 33 33 <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(rawurldecode($category->slug)); ?>" size="40" /><br /> 35 35 <?php _e('The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></td> 36 36 </tr> 37 37 <tr class="form-field"> -
edit-link-category-form.php
old new 30 30 </tr> 31 31 <tr class="form-field"> 32 32 <th scope="row" valign="top"><label for="slug"><?php _e('Category slug') ?></label></th> 33 <td><input name="slug" id="slug" type="text" value="<?php echo $category->slug; ?>" size="40" />33 <td><input name="slug" id="slug" type="text" value="<?php echo rawurldecode($category->slug); ?>" size="40" /> 34 34 <?php _e('The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></td> 35 35 </tr> 36 36 <tr class="form-field"> -
edit-tag-form.php
old new 31 31 </tr> 32 32 <tr class="form-field"> 33 33 <th scope="row" valign="top"><label for="slug"><?php _e('Tag slug') ?></label></th> 34 <td><input name="slug" id="slug" type="text" value="<?php echo attribute_escape( $tag->slug); ?>" size="40" />34 <td><input name="slug" id="slug" type="text" value="<?php echo attribute_escape(rawurldecode($tag->slug)); ?>" size="40" /> 35 35 <p><?php _e('The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p></td> 36 36 </tr> 37 37 </table> -
includes/post.php
old new 642 642 return ''; 643 643 } 644 644 $title = __('Click to edit this part of the permalink'); 645 646 // make %-encoded international names readable and therefore editable 647 $post_name = rawurldecode($post_name); 648 645 649 if (strlen($post_name) > 30) { 646 650 $post_name_abridged = substr($post_name, 0, 14). '…' . substr($post_name, -14); 647 651 } else {
