s/inval/intval/. props PeteMall. see #14889.

git-svn-id: http://core.svn.wordpress.org/trunk@21168 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-06-28 20:24:50 +00:00
parent ef1edca872
commit 416ac97d43

View File

@ -41,7 +41,7 @@ function wp_initial_constants( ) {
// set memory limits.
if ( function_exists( 'memory_get_usage' ) ) {
$current_limit = @ini_get( 'memory_limit' );
if ( -1 != $current_limit && ( -1 == WP_MEMORY_LIMIT || ( inval( $current_limit ) < abs( intval( WP_MEMORY_LIMIT ) ) ) ) )
if ( -1 != $current_limit && ( -1 == WP_MEMORY_LIMIT || ( intval( $current_limit ) < abs( intval( WP_MEMORY_LIMIT ) ) ) ) )
@ini_set( 'memory_limit', WP_MEMORY_LIMIT );
}