Make WordPress Core

Ticket #16496: 16496.patch

File 16496.patch, 806 bytes (added by linuxologos, 12 years ago)
  • wp-admin/edit-form-advanced.php

     
    292292</div>
    293293<div class="inside">
    294294<?php
    295 $sample_permalink_html = $post_type_object->public ? get_sample_permalink_html($post->ID) : '';
     295$sample_permalink_html = $post_type_object->public ? urldecode( get_sample_permalink_html( $post->ID ) ) : '';
    296296$shortlink = wp_get_shortlink($post->ID, 'post');
    297297if ( !empty($shortlink) )
    298298    $sample_permalink_html .= '<input id="shortlink" type="hidden" value="' . esc_attr($shortlink) . '" /><a href="#" class="button" onclick="prompt(&#39;URL:&#39;, jQuery(\'#shortlink\').val()); return false;">' . __('Get Shortlink') . '</a>';