Changeset 1470
- Timestamp:
- 04/06/2015 04:54:18 PM (10 years ago)
- 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 95 95 $custom = array(); 96 96 97 if ( current_user_can( 'rein tate_theme', $post->ID ) && 'suspend' == $post->post_status ) {98 $custom = array( 'rein tate' => 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' ) ) ); 99 99 } 100 100 elseif ( current_user_can( 'suspend_theme', $post->ID ) ) { … … 185 185 ) ); 186 186 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() ) ) ); 188 190 exit(); 189 191 } -
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php
r1463 r1470 26 26 // Load adjustments to the edit.php screen for repopackage posts. 27 27 include_once plugin_dir_path( __FILE__ ) . 'admin-edit.php'; 28 29 28 30 29 /** … … 497 496 * Completely removes a theme from wp-themes.com. 498 497 * 499 * This method is currently not in use.500 *501 498 * @param string $theme_slug 502 499 */ … … 603 600 ); 604 601 } 605 606 602 607 603 /**
Note: See TracChangeset
for help on using the changeset viewer.