mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Post slug fixes from nbachiyski. fixes #6072
git-svn-id: https://develop.svn.wordpress.org/trunk@7162 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -571,7 +571,9 @@ break;
|
||||
case 'sample-permalink':
|
||||
check_ajax_referer( 'samplepermalink', 'samplepermalinknonce' );
|
||||
$post_id = isset($_POST['post_id'])? intval($_POST['post_id']) : 0;
|
||||
die(get_sample_permalink_html($post_id, $_POST['new_title'], $_POST['new_slug']));
|
||||
$title = isset($_POST['new_title'])? $_POST['new_title'] : '';
|
||||
$slug = isset($_POST['new_slug'])? $_POST['new_slug'] : '';
|
||||
die(get_sample_permalink_html($post_id, $title, $slug));
|
||||
break;
|
||||
default :
|
||||
do_action( 'wp_ajax_' . $_POST['action'] );
|
||||
|
||||
Reference in New Issue
Block a user