WordPress.org

Make WordPress Core

Ticket #43913: 43913.diff

File 43913.diff, 924 bytes (added by allendav, 3 years ago)

Use completed meta, not confirmed

  • src/wp-admin/includes/user.php

     
    625625                return new WP_Error( 'privacy_request_error', __( 'Invalid request.' ) );
    626626        }
    627627
    628         update_post_meta( $request_id, '_wp_user_request_confirmed_timestamp', time() );
     628        update_post_meta( $request_id, '_wp_user_request_completed_timestamp', time() );
    629629
    630630        $request = wp_update_post( array(
    631631                'ID'          => $request_id,
    632                 'post_status' => 'request-confirmed',
     632                'post_status' => 'request-completed',
    633633        ) );
    634634
    635635        return $request;
     
    10091009                }
    10101010
    10111011                $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}
    10141014                        WHERE post_type = %s
    10151015                        AND post_name = %s
    10161016                        GROUP BY post_status";