Make WordPress Core

Ticket #43440: 43440.8.diff

File 43440.8.diff, 2.2 KB (added by desrosj, 7 years ago)
  • src/wp-includes/comment.php

     
    32813281 *
    32823282 * @since 4.9.6
    32833283 *
    3284  * @param  array $exporters An array of personal data exporters.
     3284 * @param array $exporters An array of personal data exporters.
    32853285 * @return array $exporters An array of personal data exporters.
    32863286 */
    32873287function wp_register_comment_personal_data_exporter( $exporters ) {
     
    32983298 *
    32993299 * @since 4.9.6
    33003300 *
    3301  * @param  string $email_address The comment author email address.
    3302  * @param  int    $page          Comment page.
    3303  * @return array  $return        An array of personal data.
     3301 * @param string $email_address The comment author email address.
     3302 * @param int    $page          Comment page.
     3303 * @return array $return An array of personal data.
    33043304 */
    33053305function wp_comments_personal_data_exporter( $email_address, $page = 1 ) {
    3306 
    33073306        // Limit us to 500 comments at a time to avoid timing out.
    33083307        $number = 500;
    33093308        $page   = (int) $page;
     
    33123311
    33133312        $comments = get_comments(
    33143313                array(
    3315                         'author_email' => $email_address,
    3316                         'number'       => $number,
    3317                         'paged'        => $page,
    3318                         'order_by'     => 'comment_ID',
    3319                         'order'        => 'ASC',
     3314                        'author_email'              => $email_address,
     3315                        'number'                    => $number,
     3316                        'paged'                     => $page,
     3317                        'order_by'                  => 'comment_ID',
     3318                        'order'                     => 'ASC',
     3319                        'update_comment_meta_cache' => false,
    33203320                )
    33213321        );
    33223322
     
    33253325                'comment_author_email' => __( 'Comment Author Email' ),
    33263326                'comment_author_url'   => __( 'Comment Author URL' ),
    33273327                'comment_author_IP'    => __( 'Comment Author IP' ),
    3328                 'comment_agent'        => __( 'Comment Agent' ),
     3328                'comment_agent'        => __( 'Comment Author User Agent' ),
    33293329                'comment_date'         => __( 'Comment Date' ),
    33303330                'comment_content'      => __( 'Comment Content' ),
    33313331                'comment_link'         => __( 'Comment URL' ),
     
    33443344                                case 'comment_author_IP':
    33453345                                case 'comment_agent':
    33463346                                case 'comment_date':
    3347                                         $value = $comment->$key;
     3347                                        $value = $comment->{$key};
    33483348                                        break;
    33493349
    33503350                                case 'comment_content':