WordPress.org

Make WordPress Core

Changeset 43079


Ignore:
Timestamp:
05/02/2018 12:17:16 AM (19 months ago)
Author:
SergeyBiryukov
Message:

Privacy: docs fixes and improvements for wp_comments_personal_data_exporter().

Props desrosj.
Merges [43058] to the 4.9 branch.
See #43440.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-includes/comment.php

    r43077 r43079  
    31523152 * @since 4.9.6
    31533153 *
    3154  * @param  array $exporters An array of personal data exporters.
     3154 * @param array $exporters An array of personal data exporters.
    31553155 * @return array $exporters An array of personal data exporters.
    31563156 */
     
    31693169 * @since 4.9.6
    31703170 *
    3171  * @param  string $email_address The comment author email address.
    3172  * @param  int    $page          Comment page.
    3173  * @return array  $return        An array of personal data.
     3171 * @param string $email_address The comment author email address.
     3172 * @param int    $page          Comment page.
     3173 * @return array $return An array of personal data.
    31743174 */
    31753175function wp_comments_personal_data_exporter( $email_address, $page = 1 ) {
    3176 
    31773176    // Limit us to 500 comments at a time to avoid timing out.
    31783177    $number = 500;
     
    31833182    $comments = get_comments(
    31843183        array(
    3185             'author_email' => $email_address,
    3186             'number'       => $number,
    3187             'paged'        => $page,
    3188             'order_by'     => 'comment_ID',
    3189             'order'        => 'ASC',
     3184            'author_email'              => $email_address,
     3185            'number'                    => $number,
     3186            'paged'                     => $page,
     3187            'order_by'                  => 'comment_ID',
     3188            'order'                     => 'ASC',
     3189            'update_comment_meta_cache' => false,
    31903190        )
    31913191    );
     
    31963196        'comment_author_url'   => __( 'Comment Author URL' ),
    31973197        'comment_author_IP'    => __( 'Comment Author IP' ),
    3198         'comment_agent'        => __( 'Comment Agent' ),
     3198        'comment_agent'        => __( 'Comment Author User Agent' ),
    31993199        'comment_date'         => __( 'Comment Date' ),
    32003200        'comment_content'      => __( 'Comment Content' ),
     
    32153215                case 'comment_agent':
    32163216                case 'comment_date':
    3217                     $value = $comment->$key;
     3217                    $value = $comment->{$key};
    32183218                    break;
    32193219
Note: See TracChangeset for help on using the changeset viewer.