Make WordPress Core


Ignore:
Timestamp:
01/25/2012 10:41:52 AM (13 years ago)
Author:
westi
Message:

Update the documentation of wp_set_comment_status to match current functionality props solarissmoke.
The 'delete' status was removed in [11749] when the concept of a trash status was introduced for #4529.

File:
1 edited

Legend:

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

    r19712 r19751  
    13831383 * Sets the status of a comment.
    13841384 *
    1385  * The 'wp_set_comment_status' action is called after the comment is handled and
    1386  * will only be called, if the comment status is either 'hold', 'approve', or
    1387  * 'spam'. If the comment status is not in the list, then false is returned and
    1388  * if the status is 'delete', then the comment is deleted without calling the
    1389  * action.
     1385 * The 'wp_set_comment_status' action is called after the comment is handled.
     1386 * If the comment status is not in the list, then false is returned.
    13901387 *
    13911388 * @since 1.0.0
     
    13931390 *
    13941391 * @param int $comment_id Comment ID.
    1395  * @param string $comment_status New comment status, either 'hold', 'approve', 'spam', or 'delete'.
     1392 * @param string $comment_status New comment status, either 'hold', 'approve', 'spam', or 'trash'.
    13961393 * @param bool $wp_error Whether to return a WP_Error object if there is a failure. Default is false.
    13971394 * @return bool False on failure or deletion and true on success.
Note: See TracChangeset for help on using the changeset viewer.