| @@ 69-72 (lines=4) @@ | ||
| 66 | <td><?php |
|
| 67 | $memory = wc_let_to_num( WP_MEMORY_LIMIT ); |
|
| 68 | ||
| 69 | if ( function_exists( 'memory_get_usage' ) ) { |
|
| 70 | $system_memory = wc_let_to_num( @ini_get( 'memory_limit' ) ); |
|
| 71 | $memory = max( $memory, $system_memory ); |
|
| 72 | } |
|
| 73 | ||
| 74 | if ( $memory < 67108864 ) { |
|
| 75 | echo '<mark class="error">' . sprintf( __( '%s - We recommend setting memory to at least 64MB. See: <a href="%s" target="_blank">Increasing memory allocated to PHP</a>', 'woocommerce' ), size_format( $memory ), 'http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP' ) . '</mark>'; |
|
| @@ 158-161 (lines=4) @@ | ||
| 155 | ||
| 156 | $memory = wc_let_to_num( WP_MEMORY_LIMIT ); |
|
| 157 | ||
| 158 | if ( function_exists( 'memory_get_usage' ) ) { |
|
| 159 | $system_memory = wc_let_to_num( @ini_get( 'memory_limit' ) ); |
|
| 160 | $memory = max( $memory, $system_memory ); |
|
| 161 | } |
|
| 162 | ||
| 163 | $wp_data['memory_limit'] = size_format( $memory ); |
|
| 164 | $wp_data['debug_mode'] = ( defined('WP_DEBUG') && WP_DEBUG ) ? 'Yes' : 'No'; |
|