[wp-trac] [WordPress Trac] #27726: Get Shortlink button isn't shown on draft posts

WordPress Trac noreply at wordpress.org
Tue Apr 8 18:38:16 UTC 2014

#27726: Get Shortlink button isn't shown on draft posts
 Reporter:  tomdxw          |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  3.8.1
 Severity:  normal          |   Keywords:
  Focuses:                  |
 In version 3.6 when you are editing a draft post there is a "Get
 Shortlink" button below the title. But in 3.7 and 3.8 that button only
 appears after the post has been published.

 One of our clients was using that button to place links from draft pages
 to other draft pages (apparently using the full permalink didn't work for
 them, I assume they changed the titles before hitting the publish button).

 The code which changed is line 447 of wp-admin/edit-form-advanced.php:

     if ( !empty( $shortlink ) && $shortlink !== $permalink && $permalink
 !== home_url('?page_id=' . $post->ID) )

 (Removing "$shortlink !== $permalink && " would fix the regression.)

Ticket URL: <https://core.trac.wordpress.org/ticket/27726>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list