Changeset 6594 for trunk/wp-includes/post.php
- Timestamp:
- 01/10/2008 09:46:25 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r6593 r6594 259 259 260 260 return false; 261 } 262 263 /** 264 * get_post_statuses( ) - Retuns the possible user post status values 265 * 266 * Posts have a limited set of valid status values, this provides the 267 * post_status values and descriptions. 268 * 269 * @package WordPress 270 * @subpackage Post 271 * @since 2.4 272 * 273 * @return array 274 */ 275 function get_post_statuses( ) { 276 $status = array( 277 'draft' => __('Draft'), 278 'pending' => __('Pending Review'), 279 'private' => __('Private'), 280 'publish' => __('Published') 281 ); 282 283 return $status; 284 } 285 286 /** 287 * get_page_statuses( ) - Retuns the possible user page status values 288 * 289 * Pages have a limited set of valid status values, this provides the 290 * post_status values and descriptions. 291 * 292 * @package WordPress 293 * @subpackage Page 294 * @since 2.4 295 * 296 * @return array 297 */ 298 function get_page_statuses( ) { 299 $status = array( 300 'draft' => __('Draft'), 301 'private' => __('Private'), 302 'publish' => __('Published') 303 ); 304 305 return $status; 261 306 } 262 307
Note: See TracChangeset
for help on using the changeset viewer.