Skip to content

Commit a7e3e02

Browse files
Coding Standards: Explicitly return null in get_page_of_comment().
This matches the documented `@return` type. Follow-up to [9367]. Props justlevine. See #63268. git-svn-id: https://develop.svn.wordpress.org/trunk@60362 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 7617171 commit a7e3e02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,7 @@ function get_page_of_comment( $comment_id, $args = array() ) {
10501050

10511051
$comment = get_comment( $comment_id );
10521052
if ( ! $comment ) {
1053-
return;
1053+
return null;
10541054
}
10551055

10561056
$defaults = array(

0 commit comments

Comments
 (0)