mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-13 07:10:00 +01:00
Coding Standards: Use strict comparison in get_page_of_comment()
.
Follow-up to [9367], [9522], [9808]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. Built from https://develop.svn.wordpress.org/trunk@59860 git-svn-id: http://core.svn.wordpress.org/trunk@59202 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8240259860
commit
6b79b04807
@ -1066,7 +1066,7 @@ function get_page_of_comment( $comment_id, $args = array() ) {
|
||||
}
|
||||
|
||||
// Find this comment's top-level parent if threading is enabled.
|
||||
if ( $args['max_depth'] > 1 && 0 != $comment->comment_parent ) {
|
||||
if ( $args['max_depth'] > 1 && '0' !== $comment->comment_parent ) {
|
||||
return get_page_of_comment( $comment->comment_parent, $args );
|
||||
}
|
||||
|
||||
@ -1126,7 +1126,7 @@ function get_page_of_comment( $comment_id, $args = array() ) {
|
||||
$older_comment_count = $comment_query->query( $comment_args );
|
||||
|
||||
// No older comments? Then it's page #1.
|
||||
if ( 0 == $older_comment_count ) {
|
||||
if ( 0 === $older_comment_count ) {
|
||||
$page = 1;
|
||||
|
||||
// Divide comments older than this one by comments per page to get this comment's page number.
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-alpha-59859';
|
||||
$wp_version = '6.8-alpha-59860';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user