WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/21/2019 05:40:58 PM (8 weeks ago)
Author:
johnbillion
Message:

Docs: Docblock corrections and improvements, mostly related to various pre_* filters.

See #47110

File:
1 edited

Legend:

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

    r46227 r46232  
    821821     *              allow skipping further processing.
    822822     *
    823      * @param bool|string|WP_Error $approved    The approval status. Accepts 1, 0, 'spam' or WP_Error.
    824      * @param array                $commentdata Comment data.
     823     * @param int|string|WP_Error $approved    The approval status. Accepts 1, 0, 'spam' or WP_Error.
     824     * @param array               $commentdata Comment data.
    825825     */
    826826    $approved = apply_filters( 'pre_comment_approved', $approved, $commentdata );
     
    24892489 *
    24902490 * @param int $post_id Post ID
    2491  * @return bool True on success, false on '0' $post_id or if post with ID does not exist.
     2491 * @return bool True on success, false if the post does not exist.
    24922492 */
    24932493function wp_update_comment_count_now( $post_id ) {
     
    25132513     * @since 4.5.0
    25142514     *
    2515      * @param int $new     The new comment count. Default null.
    2516      * @param int $old     The old comment count.
    2517      * @param int $post_id Post ID.
     2515     * @param int|null $new     The new comment count. Default null.
     2516     * @param int      $old     The old comment count.
     2517     * @param int      $post_id Post ID.
    25182518     */
    25192519    $new = apply_filters( 'pre_wp_update_comment_count_now', null, $old, $post_id );
Note: See TracChangeset for help on using the changeset viewer.