Case typo in delete_post API hook. http://mosquito.wordpress.org/bug_view_page.php?bug_id=0000228
git-svn-id: http://svn.automattic.com/wordpress/trunk@1572 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
17433d3a32
commit
37aedcd902
|
@ -486,7 +486,7 @@ case 'delete':
|
||||||
$sendback = $_SERVER['HTTP_REFERER'];
|
$sendback = $_SERVER['HTTP_REFERER'];
|
||||||
if (strstr($sendback, 'post.php')) $sendback = get_settings('siteurl') .'/wp-admin/post.php';
|
if (strstr($sendback, 'post.php')) $sendback = get_settings('siteurl') .'/wp-admin/post.php';
|
||||||
header ('Location: ' . $sendback);
|
header ('Location: ' . $sendback);
|
||||||
do_action('delete_post', $post_ID);
|
do_action('delete_post', $post_id);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'editcomment':
|
case 'editcomment':
|
||||||
|
|
Loading…
Reference in New Issue