Changeset 46252 for trunk/src/wp-includes/post.php
- Timestamp:
- 09/23/2019 05:39:36 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r46246 r46252 338 338 'draft', 339 339 array( 340 'label' => _x( 'Draft', 'post status' ),341 'protected' => true,342 '_builtin' => true, /* internal use only. */340 'label' => _x( 'Draft', 'post status' ), 341 'protected' => true, 342 '_builtin' => true, /* internal use only. */ 343 343 /* translators: %s: Number of draft posts. */ 344 'label_count' => _n_noop(344 'label_count' => _n_noop( 345 345 'Draft <span class="count">(%s)</span>', 346 346 'Drafts <span class="count">(%s)</span>' 347 347 ), 348 'date_floating' => true, 348 349 ) 349 350 ); … … 395 396 'auto-draft', 396 397 array( 397 'label' => 'auto-draft', 398 'internal' => true, 399 '_builtin' => true, /* internal use only. */ 398 'label' => 'auto-draft', 399 'internal' => true, 400 '_builtin' => true, /* internal use only. */ 401 'date_floating' => true, 400 402 ) 401 403 ); … … 1019 1021 * e.g. All (12) | Published (9) | My Custom Status (2) 1020 1022 * Default is value of $internal. 1023 * @type bool $date_floating Whether the post has a floating creation date. 1024 * Default to false. 1021 1025 * } 1022 1026 * @return object … … 1042 1046 'show_in_admin_status_list' => null, 1043 1047 'show_in_admin_all_list' => null, 1048 'date_floating' => null, 1044 1049 ); 1045 1050 $args = wp_parse_args( $args, $defaults ); … … 1084 1089 if ( null === $args->show_in_admin_status_list ) { 1085 1090 $args->show_in_admin_status_list = ! $args->internal; 1091 } 1092 1093 if ( null === $args->date_floating ) { 1094 $args->date_floating = false; 1086 1095 } 1087 1096
Note: See TracChangeset
for help on using the changeset viewer.