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

props kovshenin.
see #25788.
Built from https://develop.svn.wordpress.org/trunk@28823


git-svn-id: http://core.svn.wordpress.org/trunk@28627 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2014-06-24 16:06:14 +00:00
parent 781750550f
commit 60285aa687
1 changed files with 2 additions and 2 deletions

View File

@ -268,7 +268,7 @@ function wp_update_plugins( $extra_stats = array() ) {
$timeout = 30;
} else {
// Three seconds, plus one extra second for every 10 plugins
$timeout = 3 + intval( count( $plugins ) / 10 );
$timeout = 3 + (int) ( count( $plugins ) / 10 );
}
$options = array(
@ -423,7 +423,7 @@ function wp_update_themes( $extra_stats = array() ) {
$timeout = 30;
} else {
// Three seconds, plus one extra second for every 10 themes
$timeout = 3 + intval( count( $themes ) / 10 );
$timeout = 3 + (int) ( count( $themes ) / 10 );
}
$options = array(