WordPress.org

Make WordPress Core

Ticket #11462: comment.php.diff

File comment.php.diff, 1.3 KB (added by sirzooro, 6 years ago)
  • comment.php

    old new  
    371371/** 
    372372 * Add meta data field to a comment. 
    373373 * 
    374  * Post meta data is called "Custom Fields" on the Administration Panels. 
    375  * 
    376374 * @since 2.9 
    377375 * @uses add_metadata 
    378376 * @link http://codex.wordpress.org/Function_Reference/add_comment_meta 
    379377 * 
    380  * @param int $comment_id Post ID. 
     378 * @param int $comment_id Comment ID. 
    381379 * @param string $key Metadata name. 
    382380 * @param mixed $value Metadata value. 
    383381 * @param bool $unique Optional, default is false. Whether the same key should not be added. 
     
    414412 * @uses get_metadata 
    415413 * @link http://codex.wordpress.org/Function_Reference/get_comment_meta 
    416414 * 
    417  * @param int $comment_id Post ID. 
     415 * @param int $comment_id Comment ID. 
    418416 * @param string $key The meta key to retrieve. 
    419417 * @param bool $single Whether to return a single value. 
    420418 * @return mixed Will be an array if $single is false. Will be value of meta data field if $single 
     
    436434 * @uses update_metadata 
    437435 * @link http://codex.wordpress.org/Function_Reference/update_comment_meta 
    438436 * 
    439  * @param int $comment_id Post ID. 
     437 * @param int $comment_id Comment ID. 
    440438 * @param string $key Metadata key. 
    441439 * @param mixed $value Metadata value. 
    442440 * @param mixed $prev_value Optional. Previous value to check before removing.