Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
User Query: Cast
$user_total
as an int
.
The `$user_total` member of `WP_User_Query`, and corresponding `get_total()` method, have always been documented as returning an `int`. `$user_total`, however, is populated by `$wpdb->get_var()`, which returns a string (containing an integer value). Casting the return value from `get_var()` as an `int` rectifies this discrepency. Props runciters. Fixes #39297. Built from https://develop.svn.wordpress.org/trunk@39915 git-svn-id: http://core.svn.wordpress.org/trunk@39852 1a063a9b-81f0-0310-95a4-ce76da25c4cd
- Loading branch information