WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/09/2015 02:10:36 AM (7 years ago)
Author:
wonderboymusic
Message:

There are a few functions that have the ability to return false instead of a string, so the return value should be checked before being passed to functions that expect string.

These are trivial, but they clear out some Scrutinizer issues.

See #30799.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-comments-list-table.php

    r31513 r31681  
    362362        $comment = $a_comment;
    363363        $the_comment_class = wp_get_comment_status( $comment->comment_ID );
     364        if ( ! $the_comment_class ) {
     365            $the_comment_class = '';
     366        }
    364367        $the_comment_class = join( ' ', get_comment_class( $the_comment_class, $comment->comment_ID, $comment->comment_post_ID ) );
    365368
Note: See TracChangeset for help on using the changeset viewer.