Edit permalink in place. Fixes #5679. Hat tip: nbachiyski.

git-svn-id: https://develop.svn.wordpress.org/trunk@6633 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2008-01-17 16:51:32 +00:00
parent 2b0713315f
commit 098e6672e4
7 changed files with 114 additions and 5 deletions

View File

@@ -473,6 +473,11 @@ case 'closed-postboxes' :
$current_user = wp_get_current_user();
update_usermeta($current_user->ID, 'closedpostboxes', $closed);
break;
case 'sample-permalink':
check_ajax_referer( $action );
$post_id = isset($_POST['post_id'])? intval($_POST['post_id']) : 0;
die(get_sample_permalink_html($post_id, $_POST['new_slug']));
break;
default :
do_action( 'wp_ajax_' . $_POST['action'] );
die('0');