+ $current_limit_int = intval( $current_limit );
+ if ( false !== strpos( $current_limit, 'G' ) )
+ $current_limit_int *= 1024;
+ $wp_limit_int = intval( WP_MEMORY_LIMIT );
+ if ( false !== strpos( WP_MEMORY_LIMIT, 'G' ) )
+ $wp_limit_int *= 1024;
+
+ if ( -1 != $current_limit && ( -1 == WP_MEMORY_LIMIT || $current_limit_int < $wp_limit_int ) )