Making WordPress.org

Changeset 1470


Ignore:
Timestamp:
04/06/2015 04:54:18 PM (10 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.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory
Files:
2 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}
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php

    r1463 r1470  
    2626// Load adjustments to the edit.php screen for repopackage posts.
    2727include_once plugin_dir_path( __FILE__ ) . 'admin-edit.php';
    28 
    2928
    3029/**
     
    497496 * Completely removes a theme from wp-themes.com.
    498497 *
    499  * This method is currently not in use.
    500  *
    501498 * @param string $theme_slug
    502499 */
     
    603600    );
    604601}
    605 
    606602
    607603/**
Note: See TracChangeset for help on using the changeset viewer.