Ticket #16496: 16496.patch
File 16496.patch, 806 bytes (added by , 12 years ago) |
---|
-
wp-admin/edit-form-advanced.php
292 292 </div> 293 293 <div class="inside"> 294 294 <?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 ) ) : ''; 296 296 $shortlink = wp_get_shortlink($post->ID, 'post'); 297 297 if ( !empty($shortlink) ) 298 298 $sample_permalink_html .= '<input id="shortlink" type="hidden" value="' . esc_attr($shortlink) . '" /><a href="#" class="button" onclick="prompt('URL:', jQuery(\'#shortlink\').val()); return false;">' . __('Get Shortlink') . '</a>';