diff --git src/wp-admin/includes/ajax-actions.php src/wp-admin/includes/ajax-actions.php
index ecbe467..8ac62af 100644
|
|
function wp_ajax_add_menu_item() { |
1171 | 1171 | foreach ( (array) $_POST['menu-item'] as $menu_item_data ) { |
1172 | 1172 | if ( |
1173 | 1173 | ! empty( $menu_item_data['menu-item-type'] ) && |
1174 | | 'custom' != $menu_item_data['menu-item-type'] && |
| 1174 | in_array( $menu_item_data['menu-item-type'], array( 'post_type', 'post_type_archive', 'taxonomy' ) ) && |
1175 | 1175 | ! empty( $menu_item_data['menu-item-object-id'] ) |
1176 | 1176 | ) { |
1177 | 1177 | switch( $menu_item_data['menu-item-type'] ) { |