WordPress.org

Make WordPress Core

Ticket #46931: 46931-2.diff

File 46931-2.diff, 4.6 KB (added by subrataemfluence, 2 years ago)
  • wp-includes/comment-template.php

    diff --git wp-includes/comment-template.php wp-includes/comment-template.php
    index 41031cb..3f70ddf 100755
    function get_comments_number( $post_id = 0 ) { 
    873873 *
    874874 * @since 0.71
    875875 *
    876  * @param string $zero       Optional. Text for no comments. Default false.
    877  * @param string $one        Optional. Text for one comment. Default false.
    878  * @param string $more       Optional. Text for more than one comment. Default false.
     876 * @param false|string $zero       Optional. Text for no comments. Default false.
     877 * @param false|string $one        Optional. Text for one comment. Default false.
     878 * @param false|string $more       Optional. Text for more than one comment. Default false.
    879879 * @param string $deprecated Not used.
    880880 */
    881881function comments_number( $zero = false, $one = false, $more = false, $deprecated = '' ) {
    function comments_number( $zero = false, $one = false, $more = false, $deprecate 
    885885        echo get_comments_number_text( $zero, $one, $more );
    886886}
    887887
    888 /**
     888/**`
    889889 * Display the language string for the number of comments the current post has.
    890890 *
    891891 * @since 4.0.0
    892892 *
    893  * @param string $zero Optional. Text for no comments. Default false.
    894  * @param string $one  Optional. Text for one comment. Default false.
    895  * @param string $more Optional. Text for more than one comment. Default false.
     893 * @param false|string $zero Optional. Text for no comments. Default false.
     894 * @param false|string $one  Optional. Text for one comment. Default false.
     895 * @param false|string $more Optional. Text for more than one comment. Default false.
     896 *
     897 * @return string
    896898 */
    897899function get_comments_number_text( $zero = false, $one = false, $more = false ) {
    898900        $number = get_comments_number();
    function get_comment_type( $comment_ID = 0 ) { 
    10851087 *
    10861088 * @since 0.71
    10871089 *
    1088  * @param string $commenttxt   Optional. String to display for comment type. Default false.
    1089  * @param string $trackbacktxt Optional. String to display for trackback type. Default false.
    1090  * @param string $pingbacktxt  Optional. String to display for pingback type. Default false.
     1090 * @param false|string $commenttxt   Optional. String to display for comment type. Default false.
     1091 * @param false|string $trackbacktxt Optional. String to display for trackback type. Default false.
     1092 * @param false|string $pingbacktxt  Optional. String to display for pingback type. Default false.
    10911093 */
    10921094function comment_type( $commenttxt = false, $trackbacktxt = false, $pingbacktxt = false ) {
    10931095        if ( false === $commenttxt ) {
    function trackback_url( $deprecated_echo = true ) { 
    11761178 *
    11771179 * @since 0.71
    11781180 *
    1179  * @param int $deprecated Not used (Was $timezone = 0).
     1181 * @param string|int $deprecated Not used (Was $timezone = 0).
    11801182 */
    11811183function trackback_rdf( $deprecated = '' ) {
    11821184        if ( ! empty( $deprecated ) ) {
    function comment_id_fields( $id = 0 ) { 
    19231925 *
    19241926 * @global WP_Comment $comment Current comment.
    19251927 *
    1926  * @param string $noreplytext  Optional. Text to display when not replying to a comment.
    1927  *                             Default false.
    1928  * @param string $replytext    Optional. Text to display when replying to a comment.
    1929  *                             Default false. Accepts "%s" for the author of the comment
    1930  *                             being replied to.
    1931  * @param string $linktoparent Optional. Boolean to control making the author's name a link
    1932  *                             to their comment. Default true.
     1928 * @param false|string $noreplytext  Optional. Text to display when not replying to a comment.
     1929 *                                   Default false.
     1930 * @param false|string $replytext    Optional. Text to display when replying to a comment.
     1931 *                                   Default false. Accepts "%s" for the author of the comment
     1932 *                                   being replied to.
     1933 * @param true|string $linktoparent Optional. Boolean to control making the author's name a link
     1934 *                                   to their comment. Default true.
    19331935 */
    19341936function comment_form_title( $noreplytext = false, $replytext = false, $linktoparent = true ) {
    19351937        global $comment;
    function comment_form_title( $noreplytext = false, $replytext = false, $linktopa 
    19901992 *     @type bool   $echo              Whether to echo the output or return it. Default true.
    19911993 * }
    19921994 * @param array $comments Optional. Array of WP_Comment objects.
     1995 *
     1996 * @return void|string
    19931997 */
    19941998function wp_list_comments( $args = array(), $comments = null ) {
    19951999        global $wp_query, $comment_alt, $comment_depth, $comment_thread_alt, $overridden_cpage, $in_comment_loop;