3327 | | switch ( $screen->id ) { |
3328 | | case $post_type_object->name: |
3329 | | $default_action = array('edit.php?post_type=' . $post_type_object->name => array($post_type_object->labels->edit_item, $post_type_object->cap->edit_posts)); |
3330 | | break; |
3331 | | case "edit-{$post_type_object->name}": |
3332 | | $default_action = array('post-new.php?post_type=' . $post_type_object->name => array($post_type_object->labels->new_item, $post_type_object->cap->edit_posts)); |
3333 | | break; |
3334 | | } |
| 3327 | if ( "edit-{$post_type_object->name}" == $screen->id || 'post.php' == $hook_suffix ) |
| 3328 | $default_action = array('post-new.php?post_type=' . $post_type_object->name => array($post_type_object->labels->new_item, $post_type_object->cap->edit_posts)); |
| 3329 | elseif ( $post_type_object->name == $screen->id ) |
| 3330 | $default_action = array('edit.php?post_type=' . $post_type_object->name => array($post_type_object->labels->edit_item, $post_type_object->cap->edit_posts)); |