Make WordPress Core

Ticket #24303: 24303.diff

File 24303.diff, 692 bytes (added by DrewAPicture, 12 years ago)
  • wp-includes/post-formats.php

     
    979979}
    980980
    981981/**
    982  * Runs during save_post, fixes empty titles for asides and statuses.
     982 * Fixes empty titles for aside and status formats
    983983 *
     984 * Passes a generated post title to the 'wp_insert_post_data' filter.
     985 *
    984986 * @since 3.6.0
    985987 * @access private
     988 *
     989 * @uses _post_formats_generate_title()
    986990 */
    987991function _post_formats_fix_empty_title( $data, $postarr ) {
    988992        if ( 'auto-draft' == $data['post_status'] || ! post_type_supports( $data['post_type'], 'post-formats' ) )