Ticket #4762: 4762.diff

File 4762.diff, 0.5 kB (added by ruckus, 7 months ago)

absint doesn't exist yet

  • wp-settings.php

    old new  
    1212if ( !defined('WP_MEMORY_LIMIT') ) 
    1313        define('WP_MEMORY_LIMIT', '32M'); 
    1414 
    15 if ( function_exists('memory_get_usage') && ( (int) @ini_get('memory_limit') < absint(WP_MEMORY_LIMIT) ) ) 
     15if ( function_exists('memory_get_usage') && ( abs(intval(ini_get('memory_limit'))) < abs(intval(WP_MEMORY_LIMIT)) ) ) 
    1616        @ini_set('memory_limit', WP_MEMORY_LIMIT); 
    1717 
    1818/**