WordPress.org

Make WordPress Core

Changeset 43058


Ignore:
Timestamp:
05/01/2018 05:17:49 PM (17 months ago)
Author:
azaozz
Message:

Privacy: docs fixes and improvements for wp_comments_personal_data_exporter().

Props desrosj.
See #43440.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment.php

    r43042 r43058  
    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 */
     
    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;
     
    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    );
     
    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' ),
     
    33453345                case 'comment_agent':
    33463346                case 'comment_date':
    3347                     $value = $comment->$key;
     3347                    $value = $comment->{$key};
    33483348                    break;
    33493349
Note: See TracChangeset for help on using the changeset viewer.