Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #62169


Ignore:
Timestamp:
10/05/2024 03:52:35 AM (2 years ago)
Author:
sabernhardt
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #62169

    • Property Component General → Comments
    • Property Focuses coding-standards added
    • Property Summary A strict comparison should be implemented in the wp-includes/comment-template.php in wp_list_comments function → Use strict comparison in wp_list_comments()
  • Ticket #62169 – Description

    initial v2  
    1 A strict comparison should be implemented in the wp-includes/comment-template.php file in wp_list_comments() on line 2291:
    2 if ( $parsed_args['page'] !== $current_cpage || $parsed_args['per_page'] !== $current_per_page ) .
     1A strict comparison should be implemented in the `wp-includes/comment-template.php` file in `wp_list_comments()` on line 2291:
     2`if ( $parsed_args['page'] !== $current_cpage || $parsed_args['per_page'] !== $current_per_page )` .
    33
    4 $parsed_args['page'] and $current_cpage, as well as $parsed_args['per_page'] and $current_per_page, both return integer values. I have not observed any of these variables returning a different return type.
     4`$parsed_args['page']` and `$current_cpage`, as well as `$parsed_args['per_page']` and `$current_per_page`, both return integer values. I have not observed any of these variables returning a different return type.