diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php
index fa3e400..d103ea9 100644
a
|
b
|
function get_sample_permalink($id, $title = null, $name = null) { |
1227 | 1227 | $post->post_name = sanitize_title($name ? $name : $title, $post->ID); |
1228 | 1228 | |
1229 | 1229 | $post->post_name = wp_unique_post_slug($post->post_name, $post->ID, $post->post_status, $post->post_type, $post->post_parent); |
| 1230 | if ($post->ID === (int) $post->post_name) { |
| 1231 | return array('', ''); |
| 1232 | } |
1230 | 1233 | |
1231 | 1234 | $post->filter = 'sample'; |
1232 | 1235 | |
… |
… |
function get_sample_permalink_html( $id, $new_title = null, $new_slug = null ) { |
1289 | 1292 | |
1290 | 1293 | list($permalink, $post_name) = get_sample_permalink($post->ID, $new_title, $new_slug); |
1291 | 1294 | |
| 1295 | if ($permalink === '' && $post_name === '') { |
| 1296 | return ''; |
| 1297 | } |
| 1298 | |
1292 | 1299 | $view_link = false; |
1293 | 1300 | $preview_target = ''; |
1294 | 1301 | |