Photo Gallery by Envira – Responsive Image Gallery for WordPress - Version 1.2.9

Version Description

  • Added: envira_minify_strip_double_forward_slashes filter when minifying, allowing developers to disable this for edge cases
Download this release

Release Info

Developer n7studios
Plugin Icon 128x128 Photo Gallery by Envira – Responsive Image Gallery for WordPress
Version 1.2.9
Comparing to
See all releases

Code changes from version 1.2.8 to 1.2.9

Files changed (3) hide show
  1. config.codekit +10 -1
  2. includes/global/shortcode.php +4 -3
  3. readme.txt +3 -0
config.codekit CHANGED
@@ -1,7 +1,16 @@
1
  {
2
  "CodeKitInfo": "This is a CodeKit 2.x project configuration file. It is designed to sync project settings across multiple machines. MODIFYING THE CONTENTS OF THIS FILE IS A POOR LIFE DECISION. If you do so, you will likely cause CodeKit to crash. This file is not useful unless accompanied by the project that created it in CodeKit 2. This file is not backwards-compatible with CodeKit 1.x. For more information, see: http:\/\/incident57.com\/codekit",
3
- "creatorBuild": "18966",
4
  "files": {
 
 
 
 
 
 
 
 
 
5
  "\/assets\/css\/envira.css": {
6
  "fileType": 16,
7
  "ignore": 1,
1
  {
2
  "CodeKitInfo": "This is a CodeKit 2.x project configuration file. It is designed to sync project settings across multiple machines. MODIFYING THE CONTENTS OF THIS FILE IS A POOR LIFE DECISION. If you do so, you will likely cause CodeKit to crash. This file is not useful unless accompanied by the project that created it in CodeKit 2. This file is not backwards-compatible with CodeKit 1.x. For more information, see: http:\/\/incident57.com\/codekit",
3
+ "creatorBuild": "19033",
4
  "files": {
5
+ "\/assets\/css\/attachment-details-modal-support.css": {
6
+ "fileType": 16,
7
+ "ignore": 1,
8
+ "ignoreWasSetByUser": 0,
9
+ "inputAbbreviatedPath": "\/assets\/css\/attachment-details-modal-support.css",
10
+ "outputAbbreviatedPath": "No Output Path",
11
+ "outputPathIsOutsideProject": 0,
12
+ "outputPathIsSetByUser": 0
13
+ },
14
  "\/assets\/css\/envira.css": {
15
  "fileType": 16,
16
  "ignore": 1,
includes/global/shortcode.php CHANGED
@@ -483,9 +483,10 @@ class Envira_Gallery_Shortcode_Lite {
483
  public function minify( $string, $stripDoubleForwardslashes = true ) {
484
 
485
  // Added a switch for stripping double forwardslashes
486
- // This can be disabled when using URLs in JS, to ensure http:// doesn't get removed
487
- // All other comment removal and minification will take place
488
-
 
489
  if ( $stripDoubleForwardslashes ) {
490
  $clean = preg_replace( '/((?:\/\*(?:[^*]|(?:\*+[^*\/]))*\*+\/)|(?:\/\/.*))/', '', $string );
491
  } else {
483
  public function minify( $string, $stripDoubleForwardslashes = true ) {
484
 
485
  // Added a switch for stripping double forwardslashes
486
+ // This can be disabled when using URLs in JS, to ensure http:// doesn't get removed
487
+ // All other comment removal and minification will take place
488
+ $stripDoubleForwardslashes = apply_filters( 'envira_minify_strip_double_forward_slashes', $stripDoubleForwardslashes );
489
+
490
  if ( $stripDoubleForwardslashes ) {
491
  $clean = preg_replace( '/((?:\/\*(?:[^*]|(?:\*+[^*\/]))*\*+\/)|(?:\/\/.*))/', '', $string );
492
  } else {
readme.txt CHANGED
@@ -57,6 +57,9 @@ Also, I'm an <a href="https://thomasgriffin.io" rel="me" title="WordPress Develo
57
 
58
  == Changelog ==
59
 
 
 
 
60
  = 1.2.8 =
61
  * Added: RTL Support
62
 
57
 
58
  == Changelog ==
59
 
60
+ = 1.2.9 =
61
+ * Added: envira_minify_strip_double_forward_slashes filter when minifying, allowing developers to disable this for edge cases
62
+
63
  = 1.2.8 =
64
  * Added: RTL Support
65