Make WordPress Core


Ignore:
Timestamp:
10/01/2009 11:44:18 AM (17 years ago)
Author:
markjaquith
Message:

Surface "Move to Trash" link for posts/pages immediately after first autosave fires. Props cross country flight. fixes #10344

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/page.php

    r11923 r11986  
    156156
    157157        $sendback = wp_get_referer();
    158         if ( strpos($sendback, 'page.php') !== false )
     158        if ( strpos($sendback, 'page.php') !== false || strpos($sendback, 'page-new.php') !== false )
    159159                $sendback = admin_url('edit-pages.php?trashed=1');
    160160        else
Note: See TracChangeset for help on using the changeset viewer.