Make WordPress Core


Ignore:
Timestamp:
11/17/2014 02:59:43 AM (9 years ago)
Author:
johnbillion
Message:

Decode the sample permalink shown to the user. This avoids showing encoded non-Latin characters in the sample permalink.

Fixes #16496
Props linuxologos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/post.php

    r30346 r30364  
    12241224
    12251225        $post_name_html = '<span id="editable-post-name" title="' . $title . '">' . $post_name_abridged . '</span>';
    1226         $display_link = str_replace( array( '%pagename%', '%postname%' ), $post_name_html, $permalink );
     1226        $display_link = str_replace( array( '%pagename%', '%postname%' ), $post_name_html, urldecode( $permalink ) );
    12271227
    12281228        $return =  '<strong>' . __( 'Permalink:' ) . "</strong>\n";
Note: See TracChangeset for help on using the changeset viewer.