WordPress.org

Make WordPress Core

Changeset 45741


Ignore:
Timestamp:
08/04/2019 02:19:19 AM (16 months ago)
Author:
SergeyBiryukov
Message:

Docs: Remove incorrect @return tags in comment_reply_link() and post_reply_link() DocBlocks.

Props atachibana.
Fixes #47826.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment-template.php

    r45739 r45741  
    16221622 * @param int|WP_Post    $post    Post ID or WP_Post object the comment is going to be displayed on.
    16231623 *                                Default current post.
    1624  * @return void|false|string Link to show comment form, if successful. False, if comments are closed.
     1624 * @return string|false|null Link to show comment form, if successful. False, if comments are closed.
    16251625 */
    16261626function get_comment_reply_link( $args = array(), $comment = null, $post = null ) {
     
    17311731 * @param int|WP_Post $post    Post ID or WP_Post object the comment is going to be displayed on.
    17321732 *                             Default current post.
    1733  * @return mixed Link to show comment form, if successful. False, if comments are closed.
    17341733 */
    17351734function comment_reply_link( $args = array(), $comment = null, $post = null ) {
     
    17581757 * @param int|WP_Post $post    Optional. Post ID or WP_Post object the comment is going to be displayed on.
    17591758 *                             Default current post.
    1760  * @return false|null|string Link to show comment form, if successful. False, if comments are closed.
     1759 * @return string|false|null Link to show comment form, if successful. False, if comments are closed.
    17611760 */
    17621761function get_post_reply_link( $args = array(), $post = null ) {
     
    18221821 * @param int|WP_Post $post Post ID or WP_Post object the comment is going to be displayed on.
    18231822 *                          Default current post.
    1824  * @return string|bool|null Link to show comment form, if successful. False, if comments are closed.
    18251823 */
    18261824function post_reply_link( $args = array(), $post = null ) {
Note: See TracChangeset for help on using the changeset viewer.