WordPress.org

Make WordPress Core

Ticket #44841: 44841.patch

File 44841.patch, 2.0 KB (added by Mirucon, 8 months ago)
  • src/wp-includes/comment-template.php

    From 65f5d3d125f79f05fcd1964bc89fbecd9be867f2 Mon Sep 17 00:00:00 2001
    From: Toshihiro Kanai <i@miruc.co>
    Date: Sat, 25 Aug 2018 09:32:56 +0900
    Subject: [PATCH] docs: Fix mismatch parameter type on comments_popup_link()
    
    ---
     src/wp-includes/comment-template.php | 16 ++++++++--------
     1 file changed, 8 insertions(+), 8 deletions(-)
    
    diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php
    index d0bdba5024..4fd0537b90 100644
    a b function comments_template( $file = '/comments.php', $separate_comments = false 
    15161516 *
    15171517 * @since 0.71
    15181518 *
    1519  * @param string $zero      Optional. String to display when no comments. Default false.
    1520  * @param string $one       Optional. String to display when only one comment is available.
    1521  *                          Default false.
    1522  * @param string $more      Optional. String to display when there are more than one comment.
    1523  *                          Default false.
    1524  * @param string $css_class Optional. CSS class to use for comments. Default empty.
    1525  * @param string $none      Optional. String to display when comments have been turned off.
    1526  *                          Default false.
     1519 * @param false|string $zero      Optional. String to display when no comments. Default false.
     1520 * @param false|string $one       Optional. String to display when only one comment is available.
     1521 *                                Default false.
     1522 * @param false|string $more      Optional. String to display when there are more than one comment.
     1523 *                                Default false.
     1524 * @param false|string $css_class Optional. CSS class to use for comments. Default empty.
     1525 * @param false|string $none      Optional. String to display when comments have been turned off.
     1526 *                                Default false.
    15271527 */
    15281528function comments_popup_link( $zero = false, $one = false, $more = false, $css_class = '', $none = false ) {
    15291529        $id     = get_the_ID();