WordPress.org

Make WordPress Core

Ticket #12644: supports2.diff

File supports2.diff, 1.1 KB (added by sillybean, 12 years ago)

corrected list of supports arguments, with explanations where necessary

  • Users/steph/Documents/code/WordPressSVN/trunk/wp-includes/post.php

     
    876876/**
    877877 * Register support of certain features for a post type.
    878878 *
     879 * Optional $feature contents:
     880 *
     881 * author - the author of the post
     882 * title - the title of the post
     883 * editor - the content, including the visual/HTML editors and the media upload buttons
     884 * excerpt - the post excerpt
     885 * comments - the comments
     886 * trackbacks - the trackbacks
     887 * thumbnail - the thumbnail image
     888 * revisions - the revisions
     889 * page-attributes - the page attributes box, including the parent, template, and menu order fields
     890 * custom-fields - the custom fields meta box
     891 *
    879892 * @since 3.0
    880893 * @param string $post_type The post type for which to add the feature
    881894 * @param string|array $feature the feature being added, can be an array of feature strings or a single string