Make WordPress Core

Ticket #46011: 46011.diff

File 46011.diff, 5.6 KB (added by subrataemfluence, 6 years ago)
  • wp-includes/

    diff --git wp-includes/comment-template.php wp-includes/comment-template-new.php
    index c445147..8b3b8f8 100755
    old new function get_comments_number( $post_id = 0 ) { 
    864864 *
    865865 * @since 0.71
    866866 *
    867  * @param string $zero       Optional. Text for no comments. Default false.
    868  * @param string $one        Optional. Text for one comment. Default false.
    869  * @param string $more       Optional. Text for more than one comment. Default false.
    870  * @param string $deprecated Not used.
     867 * @param string|false $zero       Optional. Text for no comments. Default false.
     868 * @param string|false $one        Optional. Text for one comment. Default false.
     869 * @param string|false $more       Optional. Text for more than one comment. Default false.
     870 * @param string       $deprecated Not used.
    871871 */
    872872function comments_number( $zero = false, $one = false, $more = false, $deprecated = '' ) {
    873873        if ( ! empty( $deprecated ) ) {
    function comments_number( $zero = false, $one = false, $more = false, $deprecate 
    881881 *
    882882 * @since 4.0.0
    883883 *
    884  * @param string $zero Optional. Text for no comments. Default false.
    885  * @param string $one  Optional. Text for one comment. Default false.
    886  * @param string $more Optional. Text for more than one comment. Default false.
     884 * @param string|false $zero Optional. Text for no comments. Default false.
     885 * @param string|false $one  Optional. Text for one comment. Default false.
     886 * @param string|false $more Optional. Text for more than one comment. Default false.
     887 *
     888 * @return string
    887889 */
    888890function get_comments_number_text( $zero = false, $one = false, $more = false ) {
    889891        $number = get_comments_number();
    function get_comment_type( $comment_ID = 0 ) { 
    10741076 *
    10751077 * @since 0.71
    10761078 *
    1077  * @param string $commenttxt   Optional. String to display for comment type. Default false.
    1078  * @param string $trackbacktxt Optional. String to display for trackback type. Default false.
    1079  * @param string $pingbacktxt  Optional. String to display for pingback type. Default false.
     1079 * @param string|false $commenttxt   Optional. String to display for comment type. Default false.
     1080 * @param string|false $trackbacktxt Optional. String to display for trackback type. Default false.
     1081 * @param string|false $pingbacktxt  Optional. String to display for pingback type. Default false.
    10801082 */
    10811083function comment_type( $commenttxt = false, $trackbacktxt = false, $pingbacktxt = false ) {
    10821084        if ( false === $commenttxt ) $commenttxt = _x( 'Comment', 'noun' );
    function trackback_url( $deprecated_echo = true ) { 
    11551157 *
    11561158 * @since 0.71
    11571159 *
    1158  * @param int $deprecated Not used (Was $timezone = 0).
     1160 * @param int|string $deprecated Not used (Was $timezone = 0).
    11591161 */
    11601162function trackback_rdf( $deprecated = '' ) {
    11611163        if ( ! empty( $deprecated ) ) {
    function comments_template( $file = '/comments.php', $separate_comments = false 
    14891491 *
    14901492 * @since 0.71
    14911493 *
    1492  * @param string $zero      Optional. String to display when no comments. Default false.
    1493  * @param string $one       Optional. String to display when only one comment is available.
    1494  *                          Default false.
    1495  * @param string $more      Optional. String to display when there are more than one comment.
    1496  *                          Default false.
    1497  * @param string $css_class Optional. CSS class to use for comments. Default empty.
    1498  * @param string $none      Optional. String to display when comments have been turned off.
    1499  *                          Default false.
     1494 * @param string|false $zero      Optional. String to display when no comments. Default false.
     1495 * @param string|false $one       Optional. String to display when only one comment is available.
     1496 *                                Default false.
     1497 * @param string|false $more      Optional. String to display when there are more than one comment.
     1498 *                                Default false.
     1499 * @param string       $css_class Optional. CSS class to use for comments. Default empty.
     1500 * @param string|false $none      Optional. String to display when comments have been turned off.
     1501 *                                Default false.
    15001502 */
    15011503function comments_popup_link( $zero = false, $one = false, $more = false, $css_class = '', $none = false ) {
    15021504        $id = get_the_ID();
    function comment_id_fields( $id = 0 ) { 
    18671869 *
    18681870 * @global WP_Comment $comment Current comment.
    18691871 *
    1870  * @param string $noreplytext  Optional. Text to display when not replying to a comment.
    1871  *                             Default false.
    1872  * @param string $replytext    Optional. Text to display when replying to a comment.
    1873  *                             Default false. Accepts "%s" for the author of the comment
    1874  *                             being replied to.
    1875  * @param string $linktoparent Optional. Boolean to control making the author's name a link
    1876  *                             to their comment. Default true.
     1872 * @param string|false $noreplytext  Optional. Text to display when not replying to a comment.
     1873 *                                   Default false.
     1874 * @param string|false $replytext    Optional. Text to display when replying to a comment.
     1875 *                                   Default false. Accepts "%s" for the author of the comment
     1876 *                                   being replied to.
     1877 * @param string|bool $linktoparent Optional. Boolean to control making the author's name a link
     1878 *                                   to their comment. Default true.
    18771879 */
    18781880function comment_form_title( $noreplytext = false, $replytext = false, $linktoparent = true ) {
    18791881        global $comment;