WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/12/2012 06:49:48 PM (9 years ago)
Author:
ryan
Message:

Schedule auto-draft deletion from post-new.php instead of from admin.php. This provides better throttling for large multisite installs and reduces the risk of a delete avalanche.

fixes #19663

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-filters.php

    r20234 r20453  
    254254add_action( 'comment_form',               'wp_comment_form_unfiltered_html_nonce'          );
    255255add_action( 'wp_scheduled_delete',        'wp_scheduled_delete'                            );
     256add_action( 'wp_scheduled_auto_draft_delete', 'wp_delete_auto_drafts'                      );
    256257add_action( 'admin_init',                 'send_frame_options_header',               10, 0 );
    257258add_action( 'importer_scheduled_cleanup', 'wp_delete_attachment'                           );
Note: See TracChangeset for help on using the changeset viewer.