title: Cannot Increase WP Memory Limit
body: <p>I would like to increase <code>memory_limit</code> to <code>512M</code> but it's not working for me. I'm using WampServer. This is what I have done:</p>
  
  <ul>
  <li>In <code>.htaccess</code> I added <code>php_value memory_limit 512M</code> at the bottom.</li>
  <li>In <code>php.ini</code> located in <code>D:\wamp\bin\php\php7.0.10</code> I have <code>memory_limit = 512M</code>.</li>
  <li>In wp-config.php, I added <code>define( 'WP_MEMORY_LIMIT', '512M' );</code> at the bottom.</li>
  </ul>
  
  <p>However, a plugin still shows that I have 40M as it recommend that I have at least 128MB. This is what I have in the <code>defult-constants.php</code> </p>
  
  <pre><code>    if ( ! defined( 'WP_MEMORY_LIMIT' ) ) {
      if ( false === wp_is_ini_value_changeable( 'memory_limit' ) ) {
          define( 'WP_MEMORY_LIMIT', $current_limit );
      } elseif ( is_multisite() ) {
          define( 'WP_MEMORY_LIMIT', '64M' );
      } else {
          define( 'WP_MEMORY_LIMIT', '40M' );
      }
  }
  </code></pre>