WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/05/2010 02:04:22 AM (9 years ago)
Author:
markjaquith
Message:

Use post_type_supports() to check for whether a post type supports post formats. Only posts support it by default. props mikeschinkel. see #14746

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r16191 r16196  
    2525        'rewrite' => false,
    2626        'query_var' => false,
    27         'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'sticky', 'trackbacks', 'custom-fields', 'comments', 'revisions' ),
     27        'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'sticky', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'post-formats' ),
    2828    ) );
    2929
Note: See TracChangeset for help on using the changeset viewer.