WordPress.org

Make WordPress Core

Ticket #38899: 38899.0.diff

File 38899.0.diff, 616 bytes (added by westonruter, 3 years ago)
  • src/wp-includes/class-wp-customize-manager.php

    diff --git src/wp-includes/class-wp-customize-manager.php src/wp-includes/class-wp-customize-manager.php
    index 439e2b5..9a1d411 100644
    final class WP_Customize_Manager { 
    22742274                        return new WP_Error( 'changeset_post_save_failure', '', $response );
    22752275                }
    22762276
     2277                // Ensure that auto-draft posts will get garbage-collected.
     2278                if ( ! wp_next_scheduled( 'wp_scheduled_auto_draft_delete' ) ) {
     2279                        wp_schedule_event( time(), 'daily', 'wp_scheduled_auto_draft_delete' );
     2280                }
     2281
    22772282                return $response;
    22782283        }
    22792284