Make WordPress Core


Ignore:
Timestamp:
06/24/2014 04:05:54 PM (10 years ago)
Author:
SergeyBiryukov
Message:

Use direct typecasting instead of intval() for better performance.

props kovshenin.
see #25788.

File:
1 edited

Legend:

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

    r28805 r28823  
    269269    } else {
    270270        // Three seconds, plus one extra second for every 10 plugins
    271         $timeout = 3 + intval( count( $plugins ) / 10 );
     271        $timeout = 3 + (int) ( count( $plugins ) / 10 );
    272272    }
    273273
     
    424424    } else {
    425425        // Three seconds, plus one extra second for every 10 themes
    426         $timeout = 3 + intval( count( $themes ) / 10 );
     426        $timeout = 3 + (int) ( count( $themes ) / 10 );
    427427    }
    428428
Note: See TracChangeset for help on using the changeset viewer.