Make WordPress Core


Ignore:
Timestamp:
05/24/2015 05:39:47 AM (10 years ago)
Author:
wonderboymusic
Message:

Use void instead of null where appropriate when pipe-delimiting @return types. If a @return only contains void, remove it.

See #32444.

File:
1 edited

Legend:

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

    r32567 r32568  
    389389 * @param bool         $echo       Optional. Whether to cho or return the output.
    390390 *                                 Default true.
    391  * @return string|null
     391 * @return string|void
    392392 */
    393393function comment_class( $class = '', $comment_id = null, $post_id = null, $echo = true ) {
     
    11431143 * @param bool   $separate_comments Optional. Whether to separate the comments by comment type.
    11441144 *                                  Default false.
    1145  * @return null Returns null if no comments appear.
    11461145 */
    11471146function comments_template( $file = '/comments.php', $separate_comments = false ) {
     
    12881287 * @param string $none      Optional. String to display when comments have been turned off.
    12891288 *                          Default false.
    1290  * @return null Returns null on single posts and pages.
    12911289 */
    12921290function comments_popup_link( $zero = false, $one = false, $more = false, $css_class = '', $none = false ) {
     
    13871385 * @param int|WP_Post $post    Post ID or WP_Post object the comment is going to be displayed on.
    13881386 *                             Default current post.
    1389  * @return null|false|string Link to show comment form, if successful. False, if comments are closed.
     1387 * @return void|false|string Link to show comment form, if successful. False, if comments are closed.
    13901388 */
    13911389function get_comment_reply_link( $args = array(), $comment = null, $post = null ) {
     
    17901788     * @param array  $args              An array of arguments.
    17911789     * @param string $output            Passed by reference. Used to append additional content.
    1792      * @return null Null on failure with no changes to parameters.
    17931790     */
    17941791    public function display_element( $element, &$children_elements, $max_depth, $depth, $args, &$output ) {
    1795 
    17961792        if ( !$element )
    17971793            return;
Note: See TracChangeset for help on using the changeset viewer.