Make WordPress Core


Ignore:
Timestamp:
04/22/2013 04:00:25 AM (12 years ago)
Author:
markjaquith
Message:

Hide the post title and auto-generate based on the post body, for the status and aside post formats.

props kovshenin. see #24011.

File:
1 edited

Legend:

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

    r23881 r24043  
    132132add_filter( 'the_title', 'convert_chars' );
    133133add_filter( 'the_title', 'trim'          );
     134add_filter( 'the_title', '_post_formats_title', 10, 2 );
    134135
    135136add_filter( 'the_content', 'post_formats_compat', 7 );
     
    251252add_action( 'plugins_loaded',             'wp_maybe_load_embeds',                     0    );
    252253add_action( 'shutdown',                   'wp_ob_end_flush_all',                      1    );
     254add_action( 'wp_insert_post_data',        '_post_formats_fix_empty_title',           10, 2 );
    253255add_action( 'wp_insert_post',             'wp_save_post_revision',                   10, 1 );
    254256add_action( 'publish_post',               '_publish_post_hook',                       5, 1 );
Note: See TracChangeset for help on using the changeset viewer.