Changeset 21165
- Timestamp:
- 06/28/2012 08:14:39 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/default-constants.php
r19771 r21165 40 40 41 41 // set memory limits. 42 if ( function_exists('memory_get_usage') && ( (int) @ini_get('memory_limit') < abs(intval(WP_MEMORY_LIMIT)) ) ) 43 @ini_set('memory_limit', WP_MEMORY_LIMIT); 42 if ( function_exists( 'memory_get_usage' ) ) { 43 $current_limit = @ini_get( 'memory_limit' ); 44 if ( -1 != $current_limit && ( -1 == WP_MEMORY_LIMIT || ( inval( $current_limit ) < abs( intval( WP_MEMORY_LIMIT ) ) ) ) ) 45 @ini_set( 'memory_limit', WP_MEMORY_LIMIT ); 46 } 44 47 45 48 if ( !defined('WP_CONTENT_DIR') )
Note: See TracChangeset
for help on using the changeset viewer.