Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix root-relative path to adaptive-images.php in .htaccess to non-roo…

…t-relative.
  • Loading branch information...
commit d4e50109f85805a6cf9be9c40d926ebeb16056b1 1 parent d2c83b8
@JorgenHookham authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  adaptive-images.php
  2. +1 −1  wp_resolutions.php
View
2  adaptive-images.php
@@ -12,7 +12,7 @@
/* CONFIG ----------------------------------------------------------------------------------------------------------- */
-$resolutions = array(5000, 1382, 992, 768, 480); // the resolution break-points to use (screen widths, in pixels)
+$resolutions = array(1382, 992, 768, 480); // the resolution break-points to use (screen widths, in pixels)
$cache_path = "ai-cache"; // where to store the generated re-sized images. Specify from your document root!
$jpg_quality = 80; // the quality of any generated JPGs on a scale of 0 to 100
$sharpen = TRUE; // Shrinking images can blur details, perform a sharpen on re-scaled images?
View
2  wp_resolutions.php
@@ -139,7 +139,7 @@ function wprxr_htaccess ()
$i++;
}
- $new_htaccess .= "\n\nRewriteRule \.(?:jpe?g|gif|png)$ $theme_directory/adaptive-images.php\n</IfModule>\n# END WP Resolutions\n";
+ $new_htaccess .= "\n\nRewriteRule \.(?:jpe?g|gif|png)$ wp-content/plugins/wp-resolutions/adaptive-images.php\n</IfModule>\n# END WP Resolutions\n";
return $new_htaccess;
}
Please sign in to comment.
Something went wrong with that request. Please try again.