WordPress.org

Making WordPress.org

Changeset 1593


Ignore:
Timestamp:
05/18/2015 06:04:57 PM (5 years ago)
Author:
obenland
Message:

WP.org Themes: Set suspend post status to protected.

Includes suspended posts in admin-side queries, like the list of repopackages.

Also removes redundant declarations of default values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/admin-edit.php

    r1592 r1593  
    3939    // Themes can be "suspended" to hide them.
    4040    register_post_status( 'suspend', array(
    41         'label'                     => __( 'Suspended', 'wporg-themes' ),
    42         'public'                    => false,
    43         'exclude_from_search'       => true,
    44         'show_in_admin_all_list'    => true,
    45         'show_in_admin_status_list' => true,
    46         'label_count'               => _n_noop( 'Suspended <span class="count">(%s)</span>', 'Suspended <span class="count">(%s)</span>', 'wporg-themes' ),
     41        'label'               => __( 'Suspended', 'wporg-themes' ),
     42        'protected'           => true,
     43        'exclude_from_search' => true,
     44        'label_count'         => _n_noop( 'Suspended <span class="count">(%s)</span>', 'Suspended <span class="count">(%s)</span>', 'wporg-themes' ),
    4745    ) );
    4846}
Note: See TracChangeset for help on using the changeset viewer.