Making WordPress.org


Ignore:
Timestamp:
04/06/2015 04:54:18 PM (11 years ago)
Author:
obenland
Message:

WP.org Themes: Remove suspended themes from wpthemes.com.

To add that theme back to wpthemes.com, it has to be reinstated and a new version
approved.

File:
1 edited

Legend:

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

    r1455 r1470  
    9595        $custom = array();
    9696
    97         if ( current_user_can( 'reintate_theme', $post->ID ) && 'suspend' == $post->post_status ) {
    98             $custom = array( 'reintate' => sprintf( '<a class="submit-reinstate_theme" title="%1$s" href="%2$s">%3$s</a>', esc_attr__( 'Reinstate this item', 'wporg-themes' ), esc_url( wporg_themes_get_reinstate_url( $post ) ), __( 'Reinstate', 'wporg-themes' ) ) );
     97        if ( current_user_can( 'reinstate_theme', $post->ID ) && 'suspend' == $post->post_status ) {
     98            $custom = array( 'reinstate' => sprintf( '<a class="submit-reinstate_theme" title="%1$s" href="%2$s">%3$s</a>', esc_attr__( 'Reinstate this item', 'wporg-themes' ), esc_url( wporg_themes_get_reinstate_url( $post ) ), __( 'Reinstate', 'wporg-themes' ) ) );
    9999        }
    100100        elseif ( current_user_can( 'suspend_theme', $post->ID ) ) {
     
    185185    ) );
    186186
    187     wp_redirect( add_query_arg( 'suspended', 1, remove_query_arg( array( 'trashed', 'untrashed', 'deleted', 'ids', 'reinstaded' ), wp_get_referer() ) ) );
     187    wporg_themes_remove_wpthemescom( $post->post_name );
     188
     189    wp_redirect( add_query_arg( 'suspended', 1, remove_query_arg( array( 'trashed', 'untrashed', 'deleted', 'ids', 'reinstated' ), wp_get_referer() ) ) );
    188190    exit();
    189191}
Note: See TracChangeset for help on using the changeset viewer.