WordPress.org

Make WordPress Core

Ticket #46011: 46011.2.diff

File 46011.2.diff, 4.2 KB (added by mukesh27, 10 months ago)

Updated Patch. Change some docs and change false placement as per other docs.

  • wp-includes/comment-template.php

    diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php
    index 918238f..842b4c3 100644
    a b 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.
    879  * @param string $deprecated Not used.
     876 * @param false|string $zero       Optional. String to display when no comments. Default false.
     877 * @param false|string $one        Optional. String to display when only one comment is available. Default false.
     878 * @param false|string $more       Optional. String to display when there are more than one comment. Default false.
     879 * @param string       $deprecated Not used.
    880880 */
    881881function comments_number( $zero = false, $one = false, $more = false, $deprecated = '' ) {
    882882        if ( ! empty( $deprecated ) ) {
    function comments_number( $zero = false, $one = false, $more = false, $deprecate 
    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. String to display when no comments. Default false.
     894 * @param false|string $one  Optional. String to display when only one comment is available. Default false.
     895 * @param false|string $more Optional. String to display when there are more than one comment. Default false.
    896896 */
    897897function get_comments_number_text( $zero = false, $one = false, $more = false ) {
    898898        $number = get_comments_number();
    function get_comment_type( $comment_ID = 0 ) { 
    10851085 *
    10861086 * @since 0.71
    10871087 *
    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.
     1088 * @param false|string $commenttxt   Optional. String to display for comment type. Default false.
     1089 * @param false|string $trackbacktxt Optional. String to display for trackback type. Default false.
     1090 * @param false|string $pingbacktxt  Optional. String to display for pingback type. Default false.
    10911091 */
    10921092function comment_type( $commenttxt = false, $trackbacktxt = false, $pingbacktxt = false ) {
    10931093        if ( false === $commenttxt ) {
    function trackback_url( $deprecated_echo = true ) { 
    11761176 *
    11771177 * @since 0.71
    11781178 *
    1179  * @param int $deprecated Not used (Was $timezone = 0).
     1179 * @param int|string $deprecated Not used (Was $timezone = 0).
    11801180 */
    11811181function trackback_rdf( $deprecated = '' ) {
    11821182        if ( ! empty( $deprecated ) ) {
    function comment_id_fields( $id = 0 ) { 
    19111911 *
    19121912 * @global WP_Comment $comment Current comment.
    19131913 *
    1914  * @param string $noreplytext  Optional. Text to display when not replying to a comment.
    1915  *                             Default false.
    1916  * @param string $replytext    Optional. Text to display when replying to a comment.
    1917  *                             Default false. Accepts "%s" for the author of the comment
    1918  *                             being replied to.
    1919  * @param string $linktoparent Optional. Boolean to control making the author's name a link
    1920  *                             to their comment. Default true.
     1914 * @param false|string $noreplytext  Optional. Text to display when not replying to a comment.
     1915 *                                   Default false.
     1916 * @param false|string $replytext    Optional. Text to display when replying to a comment.
     1917 *                                   Default false. Accepts "%s" for the author of the comment
     1918 *                                   being replied to.
     1919 * @param bool        $linktoparent Optional. Boolean to control making the author's name a link
     1920 *                                   to their comment. Default true.
    19211921 */
    19221922function comment_form_title( $noreplytext = false, $replytext = false, $linktoparent = true ) {
    19231923        global $comment;