Show permalink editor on new posts after autosave. Props filosofo. see #5749

git-svn-id: https://develop.svn.wordpress.org/trunk@6954 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-02-21 17:08:06 +00:00
parent a738abba3d
commit 908e657b61
6 changed files with 26 additions and 16 deletions
+3 -1
View File
@@ -604,7 +604,9 @@ function get_sample_permalink_html($id, $new_slug=null) {
}
$post_name_html = '<span id="editable-post-name" title="'.$title.'">'.$post_name_abridged.'</span><span id="editable-post-name-full">'.$post_name.'</span>';
$display_link = str_replace('%postname%', $post_name_html, $permalink);
return $display_link;
$return = '<strong>' . __('Permalink:') . "</strong>\n" . '<span id="sample-permalink">' . $display_link . "</span>\n";
$return .= '<span id="edit-slug-buttons"><a href="#post_name" class="edit-slug" onclick="edit_permalink(' . $id . '); return false;">' . __('Edit') . "</a></span>\n";
return $return;
}
?>