WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/23/2010 07:20:47 PM (9 years ago)
Author:
nacin
Message:

Remove post_type params from is_archive(). use is_post_type_archive() for full context. see #13818.

File:
1 edited

Legend:

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

    r15936 r15937  
    860860 *     types and page labels for hierarchical ones. You can see accepted values in {@link get_post_type_labels()}.
    861861 * - permalink_epmask - The default rewrite endpoint bitmasks.
    862  * - has_archive - Whether to have a post type archive. Will generate the proper rewrite rules if rewrite is enabled.
     862 * - has_archive - True to enable post type archives. Will generate the proper rewrite rules if rewrite is enabled.
    863863 * - rewrite - false to prevent rewrite. Defaults to true. Use array('slug'=>$slug) to customize permastruct;
    864864 *     default will use $post_type as slug. Other options include 'with_front' and 'feeds'.
Note: See TracChangeset for help on using the changeset viewer.