Make WordPress Core

Ticket #34045: 30405-02.diff

File 30405-02.diff, 426 bytes (added by norcross, 10 years ago)

Added a check for being on post-new.php and unsets the button

  • wp-admin/post-new.php

     
    7878
    7979        unset( $check_users );
    8080}
     81// Remove the "add new" button on post-new.php since we are adding a new item at that point.
     82unset( $post_new_file );
    8183
    8284// Show post form.
    8385$post = get_default_post_to_edit( $post_type, true );