Make WordPress Core


Ignore:
Timestamp:
04/12/2014 12:00:32 AM (13 years ago)
Author:
DrewAPicture
Message:

Priority fixes for various existing hook documentation.

Props kpdesign.
See #26869

File:
1 edited

Legend:

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

    r27943 r28083  
    519519        }
    520520        $excerpt .= ($use_dotdotdot) ? '…' : '';
    521         return apply_filters('get_comment_excerpt', $excerpt);
     521
     522        /**
     523         * Filter the retrieved comment excerpt.
     524         *
     525         * @since 1.5.0
     526         *
     527         * @param string $excerpt The comment excerpt text.
     528         */
     529        return apply_filters( 'get_comment_excerpt', $excerpt );
    522530}
    523531
    … …  
    642650         * Filter the returned post comments permalink.
    643651         *
    644          * @since
     652         * @since 3.6.0
    645653         *
    646654         * @param string      $comments_link Post comments permalink with '#comments' appended.
    … …  
    977985         * Filter whether the current post is open for comments.
    978986         *
    979          * @since
     987         * @since 2.5.0
    980988         *
    981989         * @param bool        $open    Whether the current post is open for comments.
    … …  
    9981006
    9991007        $open = ( 'open' == $_post->ping_status );
     1008
     1009        /**
     1010         * Filter whether the current post is open for pings.
     1011         *
     1012         * @since 2.5.0
     1013         *
     1014         * @param bool        $open    Whether the current post is open for pings.
     1015         * @param int|WP_Post $post_id The post ID or WP_Post object.
     1016         */
    10001017        return apply_filters( 'pings_open', $open, $post_id );
    10011018}
    … …  
    20562073                'fields'               => $fields,
    20572074                'comment_field'        => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label> <textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>',
     2075                /** This filter is documented in wp-includes/link-template.php */
    20582076                'must_log_in'          => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
     2077                /** This filter is documented in wp-includes/link-template.php */
    20592078                'logged_in_as'         => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ), get_edit_user_link(), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
    20602079                'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email address will not be published.' ) . ( $req ? $required_text : '' ) . '</p>',
Note: See TracChangeset for help on using the changeset viewer.