Making WordPress.org

Ticket #2475: meta-2475.patch

File meta-2475.patch, 979 bytes (added by SergeyBiryukov, 7 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/admin-edit.php

     
    233233add_filter( 'admin_action_reinstate', 'wporg_themes_reinstate_theme' );
    234234
    235235/**
     236 * Remove themes from wp-themes.com upon theme status moving to draft.
     237 *
     238 * @param WP_Post $post
     239 */
     240function wporg_themes_remove_draft_themes_from_wpthemescom( $post ) {
     241        if ( 'repopackage' === $post->post_type ) {
     242                wporg_themes_remove_wpthemescom( $post->post_name );
     243        }
     244}
     245add_action( 'publish_to_draft', 'wporg_themes_remove_draft_themes_from_wpthemescom' );
     246
     247/**
    236248 * Give the user feedback after suspending or reinstating a theme.
    237249 */
    238250function wporg_themes_admin_notices() {