Make WordPress Core


Ignore:
Timestamp:
04/08/2010 01:04:22 AM (14 years ago)
Author:
nacin
Message:

Spell out that _builtin and _edit_link are internal use only. Include some redundancy and repetition for emphasis.

File:
1 edited

Legend:

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

    r14014 r14034  
    2020                                        'public' => true,
    2121                                        'show_ui' => false,
    22                                         '_builtin' => true,
    23                                         '_edit_link' => 'post.php?post=%d',
     22                                        '_builtin' => true, /* internal use only. don't use this when registering your own post type. */
     23                                        '_edit_link' => 'post.php?post=%d', /* internal use only. don't use this when registering your own post type. */
    2424                                        'capability_type' => 'post',
    2525                                        'hierarchical' => false,
     
    3333                                        'public' => true,
    3434                                        'show_ui' => false,
    35                                         '_builtin' => true,
    36                                         '_edit_link' => 'post.php?post=%d',
     35                                        '_builtin' => true, /* internal use only. don't use this when registering your own post type. */
     36                                        '_edit_link' => 'post.php?post=%d', /* internal use only. don't use this when registering your own post type. */
    3737                                        'capability_type' => 'page',
    3838                                        'hierarchical' => true,
     
    4545                                            'public' => true,
    4646                                            'show_ui' => false,
    47                                             '_builtin' => true,
    48                                             '_edit_link' => 'media.php?attachment_id=%d',
     47                                            '_builtin' => true, /* internal use only. don't use this when registering your own post type. */
     48                                            '_edit_link' => 'media.php?attachment_id=%d', /* internal use only. don't use this when registering your own post type. */
    4949                                            'capability_type' => 'post',
    5050                                            'hierarchical' => false,
     
    5656                                            'singular_label' => __('Revision'),
    5757                                            'public' => false,
    58                                             '_builtin' => true,
    59                                             '_edit_link' => 'revision.php?revision=%d',
     58                                            '_builtin' => true, /* internal use only. don't use this when registering your own post type. */
     59                                            '_edit_link' => 'revision.php?revision=%d', /* internal use only. don't use this when registering your own post type. */
    6060                                            'capability_type' => 'post',
    6161                                            'hierarchical' => false,
     
    6868                                                'public' => false,
    6969                                                'show_ui' => false,
    70                                                 '_builtin' => true,
     70                                                '_builtin' => true, /* internal use only. don't use this when registering your own post type. */
    7171                                                'capability_type' => 'post',
    7272                                                'hierarchical' => false,
     
    7777    register_post_status( 'publish', array( 'label' => _x('Published', 'post'),
    7878                                            'public' => true,
    79                                             '_builtin' => true,
     79                                            '_builtin' => true, /* internal use only. */
    8080                                            'label_count' => _n_noop('Published <span class="count">(%s)</span>', 'Published <span class="count">(%s)</span>')
    8181                                        ) );
     
    8383    register_post_status( 'future', array(  'label' => _x('Scheduled', 'post'),
    8484                                            'protected' => true,
    85                                             '_builtin' => true,
     85                                            '_builtin' => true, /* internal use only. */
    8686                                            'label_count' => _n_noop('Scheduled <span class="count">(%s)</span>', 'Scheduled <span class="count">(%s)</span>')
    8787                                        ) );
     
    8989    register_post_status( 'draft', array(   'label' => _x('Draft', 'post'),
    9090                                            'protected' => true,
    91                                             '_builtin' => true,
     91                                            '_builtin' => true, /* internal use only. */
    9292                                            'label_count' => _n_noop('Draft <span class="count">(%s)</span>', 'Drafts <span class="count">(%s)</span>')
    9393                                        ) );
     
    9595    register_post_status( 'pending', array( 'label' => _x('Pending', 'post'),
    9696                                            'protected' => true,
    97                                             '_builtin' => true,
     97                                            '_builtin' => true, /* internal use only. */
    9898                                            'label_count' => _n_noop('Pending <span class="count">(%s)</span>', 'Pending <span class="count">(%s)</span>')
    9999                                        ) );
     
    101101    register_post_status( 'private', array( 'label' => _x('Private', 'post'),
    102102                                            'private' => true,
    103                                             '_builtin' => true,
     103                                            '_builtin' => true, /* internal use only. */
    104104                                            'label_count' => _n_noop('Private <span class="count">(%s)</span>', 'Private <span class="count">(%s)</span>')
    105105                                        ) );
     
    108108                                            'internal' => true,
    109109                                            'show_in_admin_status_list' => true,
    110                                             '_builtin' => true,
     110                                            '_builtin' => true, /* internal use only. */
    111111                                            'label_count' => _n_noop('Trash <span class="count">(%s)</span>', 'Trash <span class="count">(%s)</span>')
    112112                                        ) );
     
    114114    register_post_status( 'auto-draft', array(  'label' => _x('Auto-Draft', 'post'),
    115115                                            'internal' => true,
    116                                             '_builtin' => true,
     116                                            '_builtin' => true, /* internal use only. */
    117117                                            'label_count' => _n_noop('Auto-Draft <span class="count">(%s)</span>', 'Auto-Drafts <span class="count">(%s)</span>')
    118118                                        ) );
Note: See TracChangeset for help on using the changeset viewer.