Permalink
Browse files

Admin error message fix 'Autoptimize cannot write to the cache direct…

…ory' changed to AUTOPTIMIZE_CACHE_DIR path string variable.
  • Loading branch information...
1 parent da5b2c8 commit 41bc7e3498a5277d9f3957a51317753affbb6453 @stuarteske stuarteske committed with BryterDigital Nov 30, 2016
Showing with 6 additions and 1 deletion.
  1. +6 −1 autoptimize.php
View
@@ -112,7 +112,12 @@ function autoptimize_update_config_notice() {
function autoptimize_cache_unavailable_notice() {
echo '<div class="error"><p>';
- _e('Autoptimize cannot write to the cache directory (default: /wp-content/cache/autoptimize), please fix to enable CSS/ JS optimization!', 'autoptimize' );
+ _e(
+ 'Autoptimize cannot write to the cache directory ('
+ . AUTOPTIMIZE_CACHE_DIR
+ . '), please fix to enable CSS/ JS optimization!',
+ 'autoptimize'
+ );
echo '</p></div>';
}

0 comments on commit 41bc7e3

Please sign in to comment.