Ticket #43440: 43440.8.diff
File 43440.8.diff, 2.2 KB (added by , 7 years ago) |
---|
-
src/wp-includes/comment.php
3281 3281 * 3282 3282 * @since 4.9.6 3283 3283 * 3284 * @param 3284 * @param array $exporters An array of personal data exporters. 3285 3285 * @return array $exporters An array of personal data exporters. 3286 3286 */ 3287 3287 function wp_register_comment_personal_data_exporter( $exporters ) { … … 3298 3298 * 3299 3299 * @since 4.9.6 3300 3300 * 3301 * @param 3302 * @param 3303 * @return array $returnAn 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. 3304 3304 */ 3305 3305 function wp_comments_personal_data_exporter( $email_address, $page = 1 ) { 3306 3307 3306 // Limit us to 500 comments at a time to avoid timing out. 3308 3307 $number = 500; 3309 3308 $page = (int) $page; … … 3312 3311 3313 3312 $comments = get_comments( 3314 3313 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, 3320 3320 ) 3321 3321 ); 3322 3322 … … 3325 3325 'comment_author_email' => __( 'Comment Author Email' ), 3326 3326 'comment_author_url' => __( 'Comment Author URL' ), 3327 3327 'comment_author_IP' => __( 'Comment Author IP' ), 3328 'comment_agent' => __( 'Comment A gent' ),3328 'comment_agent' => __( 'Comment Author User Agent' ), 3329 3329 'comment_date' => __( 'Comment Date' ), 3330 3330 'comment_content' => __( 'Comment Content' ), 3331 3331 'comment_link' => __( 'Comment URL' ), … … 3344 3344 case 'comment_author_IP': 3345 3345 case 'comment_agent': 3346 3346 case 'comment_date': 3347 $value = $comment-> $key;3347 $value = $comment->{$key}; 3348 3348 break; 3349 3349 3350 3350 case 'comment_content':