Ticket #5569: post.php.diff

File post.php.diff, 1.3 KB (added by josephscott, 4 years ago)
  • wp-includes/post.php

     
    260260} 
    261261 
    262262/** 
     263 * get_post_statuses( ) - Retuns the possible user post status values 
     264 * 
     265 * Posts have a limited set of valid status values, this provides the 
     266 * post_status values and descriptions. 
     267 * 
     268 * @package WordPress 
     269 * @subpackage Post 
     270 * @since 2.4 
     271 * 
     272 * @return array 
     273 */ 
     274function get_post_statuses( ) { 
     275        $status = array( 
     276                'draft'                 => 'Draft', 
     277                'pending'               => 'Pending Review', 
     278                'private'               => 'Private', 
     279                'publish'               => 'Published' 
     280        ); 
     281 
     282        return $status; 
     283} 
     284 
     285/** 
     286 * get_past_statuses( ) - Retuns the possible user page status values 
     287 * 
     288 * Pages have a limited set of valid status values, this provides the 
     289 * post_status values and descriptions. 
     290 * 
     291 * @package WordPress 
     292 * @subpackage Page 
     293 * @since 2.4 
     294 * 
     295 * @return array 
     296 */ 
     297function get_page_statuses( ) { 
     298        $status = array( 
     299                'draft'                 => 'Draft', 
     300                'private'               => 'Private', 
     301                'publish'               => 'Published' 
     302        ); 
     303 
     304        return $status; 
     305} 
     306 
     307/** 
    263308 * get_post_type() - Returns post type 
    264309 * 
    265310 * {@internal Missing Long Description}} 
     
    26022647        } 
    26032648} 
    26042649 
    2605 ?> 
    2606  No newline at end of file 
     2650?>