WordPress.org

Make WordPress Core

Changeset 21846


Ignore:
Timestamp:
09/14/12 18:02:23 (3 years ago)
Author:
nacin
Message:

Remove unused show_in_admin_all and single_view_cap from register_post_status(). props duck_. fixes #18972.

File:
1 edited

Legend:

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

    r21845 r21846  
    807807        'protected' => null, 
    808808        'private' => null, 
    809         'show_in_admin_all' => null, 
    810809        'publicly_queryable' => null, 
    811810        'show_in_admin_status_list' => null, 
    812811        'show_in_admin_all_list' => null, 
    813         'single_view_cap' => null, 
    814812    ); 
    815813    $args = wp_parse_args($args, $defaults); 
     
    845843    if ( null === $args->show_in_admin_status_list ) 
    846844        $args->show_in_admin_status_list = !$args->internal; 
    847  
    848     if ( null === $args->single_view_cap ) 
    849         $args->single_view_cap = $args->public ? '' : 'edit'; 
    850845 
    851846    if ( false === $args->label ) 
Note: See TracChangeset for help on using the changeset viewer.