Skip to content

Commit 63e2a8a

Browse files
authored
Use single quotes for non-interpolated debug string (#1052)
* Use single quotes for debug string in wp_cache_get_postid_from_comment() phpcs (changed-lines) flagged the double-quoted string added in #1043; it has no interpolation, so single quotes are correct. * Drop vestigial level argument from wp_cache_debug() call wp_cache_debug()'s $level parameter (line 722) is declared but never used in the function body. Remove the unused '4' argument from this call.
1 parent 916e2c5 commit 63e2a8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wp-cache-phase2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3020,7 +3020,7 @@ function wp_cache_get_postid_from_comment( $comment_id, $status = 'NA' ) {
30203020

30213021
$comment = get_comment( $comment_id, ARRAY_A );
30223022
if ( ! $comment ) {
3023-
wp_cache_debug( "Comment not found; skipping cache update.", 4 );
3023+
wp_cache_debug( 'Comment not found; skipping cache update.' );
30243024
return;
30253025
}
30263026
if ( $status != 'NA' ) {

0 commit comments

Comments
 (0)