Ticket #43913: 43913.diff
File 43913.diff, 924 bytes (added by , 6 years ago) |
---|
-
src/wp-admin/includes/user.php
625 625 return new WP_Error( 'privacy_request_error', __( 'Invalid request.' ) ); 626 626 } 627 627 628 update_post_meta( $request_id, '_wp_user_request_co nfirmed_timestamp', time() );628 update_post_meta( $request_id, '_wp_user_request_completed_timestamp', time() ); 629 629 630 630 $request = wp_update_post( array( 631 631 'ID' => $request_id, 632 'post_status' => 'request-co nfirmed',632 'post_status' => 'request-completed', 633 633 ) ); 634 634 635 635 return $request; … … 1009 1009 } 1010 1010 1011 1011 $query = " 1012 SELECT post_status, COUNT( * ) AS num_posts 1013 FROM {$wpdb->posts} 1012 SELECT post_status, COUNT( * ) AS num_posts 1013 FROM {$wpdb->posts} 1014 1014 WHERE post_type = %s 1015 1015 AND post_name = %s 1016 1016 GROUP BY post_status";