Changeset 12845 for sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/admin-edit.php
- Timestamp:
- 08/17/2023 04:10:57 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/admin-edit.php
r12601 r12845 193 193 } 194 194 elseif ( current_user_can( 'reinstate_theme', $post->ID ) && 'suspend' == $post->post_status ) { 195 $links[] = sprintf( '<a class="submit-reinstate_theme" title="%1$s" href="%2$s">%3$s</a>', esc_attr__( ' Suspendthis item', 'wporg-themes' ), esc_url( wporg_themes_get_reinstate_url( $post ) ), __( 'Reinstate', 'wporg-themes' ) );195 $links[] = 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' ) ); 196 196 } 197 197 … … 260 260 'post_status' => 'suspend', 261 261 ) ); 262 263 wporg_themes_remove_wpthemescom( $post->post_name );264 262 265 263 wp_redirect( add_query_arg( 'suspended', 1, remove_query_arg( array( 'trashed', 'untrashed', 'deleted', 'ids', 'reinstated', 'delisted', 'relisted' ), wp_get_referer() ) ) ); … … 404 402 } 405 403 add_filter( 'admin_action_relist', 'wporg_themes_relist_theme' ); 406 407 /**408 * Remove themes from wp-themes.com upon theme status moving to draft.409 *410 * @param WP_Post $post411 */412 function wporg_themes_remove_draft_themes_from_wpthemescom( $post ) {413 if ( 'repopackage' === $post->post_type ) {414 wporg_themes_remove_wpthemescom( $post->post_name );415 }416 }417 add_action( 'publish_to_draft', 'wporg_themes_remove_draft_themes_from_wpthemescom' );418 404 419 405 /**
Note: See TracChangeset
for help on using the changeset viewer.