WordPress.org

Make WordPress Core

Changeset 14056


Ignore:
Timestamp:
04/10/10 12:17:19 (4 years ago)
Author:
dd32
Message:

Handle future-scheduled custom post_type's. Props waltervos. Fixes #12842

Location:
trunk/wp-includes
Files:
2 edited

Legend:

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

    r14019 r14056  
    221221add_action( 'pre_post_update',            'wp_save_post_revision'          ); 
    222222add_action( 'publish_post',               '_publish_post_hook',       5, 1 ); 
    223 add_action( 'future_post',                '_future_post_hook',        5, 2 ); 
    224 add_action( 'future_page',                '_future_post_hook',        5, 2 ); 
    225223add_action( 'save_post',                  '_save_post_hook',          5, 2 ); 
    226224add_action( 'transition_post_status',     '_transition_post_status',  5, 3 ); 
  • trunk/wp-includes/post.php

    r14054 r14056  
    892892 
    893893    $wp_post_types[$post_type] = $args; 
     894 
     895    add_action( 'future_' . $post_type, '_future_post_hook', 5, 2 ); 
    894896 
    895897    foreach ( $args->taxonomies as $taxonomy ) { 
Note: See TracChangeset for help on using the changeset viewer.