WordPress.org

Make WordPress Core

Ticket #9394: version-test.patch

File version-test.patch, 496 bytes (added by sojweb, 6 years ago)
  • wp-settings.php

     
    1515if ( function_exists('memory_get_usage') && ( (int) @ini_get('memory_limit') < abs(intval(WP_MEMORY_LIMIT)) ) ) 
    1616        @ini_set('memory_limit', WP_MEMORY_LIMIT); 
    1717 
    18 set_magic_quotes_runtime(0); 
     18if ( version_compare(PHP_VERSION,'5.2.9','<=') ) 
     19        set_magic_quotes_runtime(0); 
    1920@ini_set('magic_quotes_sybase', 0); 
    2021 
    2122/**