General: Replace older-style PHP type conversion functions with type casts.
This improves performance, readability, and consistency throughout core. * `intval()` → `(int)` * `strval()` → `(string)` * `floatval()` → `(float)` Props ayeshrajans. Fixes #42918. Built from https://develop.svn.wordpress.org/trunk@49108 git-svn-id: http://core.svn.wordpress.org/trunk@48870 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1059,7 +1059,7 @@ function wp_get_auto_update_message() {
|
||||
if ( false === $next_update_time ) {
|
||||
$message = __( 'Automatic update not scheduled. There may be a problem with WP-Cron.' );
|
||||
} else {
|
||||
$time_to_next_update = human_time_diff( intval( $next_update_time ) );
|
||||
$time_to_next_update = human_time_diff( (int) $next_update_time );
|
||||
|
||||
// See if cron is overdue.
|
||||
$overdue = ( time() - $next_update_time ) > 0;
|
||||
|
||||
Reference in New Issue
Block a user