Ticket #2475: meta-2475.patch
File meta-2475.patch, 979 bytes (added by , 8 years ago) |
---|
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/admin-edit.php
233 233 add_filter( 'admin_action_reinstate', 'wporg_themes_reinstate_theme' ); 234 234 235 235 /** 236 * Remove themes from wp-themes.com upon theme status moving to draft. 237 * 238 * @param WP_Post $post 239 */ 240 function wporg_themes_remove_draft_themes_from_wpthemescom( $post ) { 241 if ( 'repopackage' === $post->post_type ) { 242 wporg_themes_remove_wpthemescom( $post->post_name ); 243 } 244 } 245 add_action( 'publish_to_draft', 'wporg_themes_remove_draft_themes_from_wpthemescom' ); 246 247 /** 236 248 * Give the user feedback after suspending or reinstating a theme. 237 249 */ 238 250 function wporg_themes_admin_notices() {