Make WordPress Core

Ticket #44841: 44841.2.patch

File 44841.2.patch, 2.0 KB (added by Mirucon, 6 years ago)

The one I've sent before has a small mistake.. This has fixed that

  • src/wp-includes/comment-template.php

    From fadcb90f4d8ba4df306cac9bb89bd736b28bcc03 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..bcbcca3a4c 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 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();