mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-09 09:57:38 +01:00
Coding Standards: Use strict comparison in get_pages()
.
Follow-up to [4180], [49108]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. Built from https://develop.svn.wordpress.org/trunk@59575 git-svn-id: http://core.svn.wordpress.org/trunk@58961 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
aa87f88678
commit
e86f173f45
@ -6354,7 +6354,7 @@ function get_pages( $args = array() ) {
|
||||
$query_args['author__in'] = array();
|
||||
foreach ( $post_authors as $post_author ) {
|
||||
// Do we have an author id or an author login?
|
||||
if ( 0 == (int) $post_author ) {
|
||||
if ( 0 === (int) $post_author ) {
|
||||
$post_author = get_user_by( 'login', $post_author );
|
||||
if ( empty( $post_author ) ) {
|
||||
continue;
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-alpha-59574';
|
||||
$wp_version = '6.8-alpha-59575';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user