Ticket #2737: 2737.patch
File 2737.patch, 1.1 KB (added by , 7 years ago) |
---|
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-status-transitions.php
172 172 wp_delete_attachment( $attachment->ID, true ); 173 173 } 174 174 175 // Prevent recursive calling via wp_update_post(). 176 remove_action( 'rejected_plugin', array( $this, 'rejected' ), 10 ); 177 178 // Change slug to 'rejected-plugin-name-rejected' to free up 'plugin-name'. 179 wp_update_post( array( 180 'ID' => $post_id, 181 'post_name' => sprintf( 'rejected-%s-rejected', $post->post_name ) 182 ) ); 183 184 // Re-add action. 185 add_action( 'rejected_plugin', array( $this, 'rejected' ), 10, 2 ); 186 175 187 // Send email. 176 188 $email = get_user_by( 'id', $post->post_author )->user_email; 177 189 $subject = sprintf( __( '[WordPress Plugin Directory] %s has been rejected', 'wporg-plugins' ), $post->post_title );