diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index b21b50f4ae..319a534fd2 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -25,14 +25,7 @@ $current_screen->is_block_editor( false ); if ( is_multisite() ) { add_action( 'admin_footer', '_admin_notice_post_locked' ); } else { - $check_users = get_users( - array( - 'fields' => 'ID', - 'number' => 2, - ) - ); - - if ( count( $check_users ) > 1 ) { + if ( get_user_count() > 1 ) { add_action( 'admin_footer', '_admin_notice_post_locked' ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 8a337d5dc5..b78351b843 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59521'; +$wp_version = '6.8-alpha-59522'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.