WordPress.org

Make WordPress Core

Changeset 47017


Ignore:
Timestamp:
12/27/2019 12:28:39 AM (11 months ago)
Author:
SergeyBiryukov
Message:

Docs: Improve @return description for wp_update_comment() and WP_UnitTest_Factory_For_Comment::update_object().

See #48303.

Location:
trunk
Files:
2 edited

Legend:

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

    r46823 r47017  
    23172317 *
    23182318 * @param array $commentarr Contains information on the comment.
    2319  * @return int Comment was updated if value is 1, or was not updated if value is 0.
     2319 * @return int The value 1 if the comment was updated, 0 if not updated.
    23202320 */
    23212321function wp_update_comment( $commentarr ) {
  • trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-comment.php

    r46985 r47017  
    2828     * @param array $args The comment details.
    2929     *
    30      * @return false|int The comment's ID on success, false on failure.
     30     * @return int|false The comment's ID on success, false on failure.
    3131     */
    3232    public function create_object( $args ) {
     
    4040     * @param array $fields     The comment details.
    4141     *
    42      * @return int When updated 1, not update 0.
     42     * @return int The value 1 if the comment was updated, 0 if not updated.
    4343     */
    4444    public function update_object( $comment_id, $fields ) {
Note: See TracChangeset for help on using the changeset viewer.