Changeset 24233
- Timestamp:
- 05/10/2013 02:53:34 PM (12 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/default-filters.php
r24043 r24233 127 127 add_filter( 'wp_insert_post_parent', 'wp_check_post_hierarchy_for_loops', 10, 2 ); 128 128 add_filter( 'wp_update_term_parent', 'wp_check_term_hierarchy_for_loops', 10, 3 ); 129 130 // Pre save post data 131 add_filter( 'wp_insert_post_data', '_post_formats_fix_empty_title', 10, 2 ); 129 132 130 133 // Display filters … … 252 255 add_action( 'plugins_loaded', 'wp_maybe_load_embeds', 0 ); 253 256 add_action( 'shutdown', 'wp_ob_end_flush_all', 1 ); 254 add_action( 'wp_insert_post_data', '_post_formats_fix_empty_title', 10, 2 );255 257 add_action( 'wp_insert_post', 'wp_save_post_revision', 10, 1 ); 256 258 add_action( 'publish_post', '_publish_post_hook', 5, 1 ); -
trunk/wp-includes/post-formats.php
r24226 r24233 980 980 981 981 /** 982 * Runs during save_post, fixes empty titles for asides and statuses. 982 * Fixes empty titles for aside and status formats. 983 * 984 * Passes a generated post title to the 'wp_insert_post_data' filter. 983 985 * 984 986 * @since 3.6.0 985 987 * @access private 988 * 989 * @uses _post_formats_generate_title() 986 990 */ 987 991 function _post_formats_fix_empty_title( $data, $postarr ) {
Note: See TracChangeset
for help on using the changeset viewer.