Ensure we wp_die() at the end of an ajax action. see #23055.
git-svn-id: https://develop.svn.wordpress.org/trunk@23293 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fcbb71ad77
commit
8175cde11a
@ -903,6 +903,7 @@ function wp_ajax_add_menu_item() {
|
|||||||
);
|
);
|
||||||
echo walk_nav_menu_tree( $menu_items, 0, (object) $args );
|
echo walk_nav_menu_tree( $menu_items, 0, (object) $args );
|
||||||
}
|
}
|
||||||
|
wp_die();
|
||||||
}
|
}
|
||||||
|
|
||||||
function wp_ajax_add_meta() {
|
function wp_ajax_add_meta() {
|
||||||
|
Loading…
Reference in New Issue
Block a user