Make WordPress Core


Ignore:
Timestamp:
10/08/2020 09:13:57 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/update.php

    r48689 r49108  
    10601060        $message = __( 'Automatic update not scheduled. There may be a problem with WP-Cron.' );
    10611061    } else {
    1062         $time_to_next_update = human_time_diff( intval( $next_update_time ) );
     1062        $time_to_next_update = human_time_diff( (int) $next_update_time );
    10631063
    10641064        // See if cron is overdue.
Note: See TracChangeset for help on using the changeset viewer.