Make WordPress Core


Ignore:
Timestamp:
05/10/2013 02:53:34 PM (12 years ago)
Author:
SergeyBiryukov
Message:

Update _post_formats_fix_empty_title() description. Make it clear that 'wp_insert_post_data' is a filter, not an action. props DrewAPicture. fixes #24303.

File:
1 edited

Legend:

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

    r24043 r24233  
    127127add_filter( 'wp_insert_post_parent', 'wp_check_post_hierarchy_for_loops', 10, 2 );
    128128add_filter( 'wp_update_term_parent', 'wp_check_term_hierarchy_for_loops', 10, 3 );
     129
     130// Pre save post data
     131add_filter( 'wp_insert_post_data', '_post_formats_fix_empty_title', 10, 2 );
    129132
    130133// Display filters
     
    252255add_action( 'plugins_loaded',             'wp_maybe_load_embeds',                     0    );
    253256add_action( 'shutdown',                   'wp_ob_end_flush_all',                      1    );
    254 add_action( 'wp_insert_post_data',        '_post_formats_fix_empty_title',           10, 2 );
    255257add_action( 'wp_insert_post',             'wp_save_post_revision',                   10, 1 );
    256258add_action( 'publish_post',               '_publish_post_hook',                       5, 1 );
Note: See TracChangeset for help on using the changeset viewer.