Make WordPress Core


Ignore:
Timestamp:
05/16/2017 05:36:25 AM (7 years ago)
Author:
westonruter
Message:

Customize: Keep alive auto-drafts created for page/post stubs when parent changeset is updated, and delete when changeset is garbage-collected.

Props utkarshpatel, westonruter.
See #31089.
Fixes #39715.

File:
1 edited

Legend:

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

    r40631 r40676  
    326326add_action( 'delete_term',                '_wp_delete_tax_menu_item',   10, 3 );
    327327add_action( 'transition_post_status',     '_wp_auto_add_pages_to_menu', 10, 3 );
     328add_action( 'delete_post',                '_wp_delete_customize_changeset_dependent_auto_drafts' );
    328329
    329330// Post Thumbnail CSS class filtering
     
    401402add_action( 'admin_enqueue_scripts', '_wp_customize_loader_settings' );
    402403add_action( 'delete_attachment', '_delete_attachment_theme_mod' );
     404add_action( 'transition_post_status', '_wp_keep_alive_customize_changeset_dependent_auto_drafts', 20, 3 );
    403405
    404406// Calendar widget cache
Note: See TracChangeset for help on using the changeset viewer.