Completed
Push — master ( cb7a6c...647e8b )
by frank
02:26
created
autoptimize.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -132,21 +132,21 @@
 block discarded – undo
132 132
         $ao_noptimize = true;
133 133
     }
134 134
 
135
-	// if setting says not to optimize logged in user and user is logged in
136
-	if ( get_option('autoptimize_optimize_logged','on') !== 'on' && is_user_logged_in() && current_user_can('edit_posts') ) {
137
-		$ao_noptimize = true;
138
-	}
139
-
140
-	// if setting says not to optimize cart/ checkout
141
-	if ( get_option('autoptimize_optimize_checkout','on') !== 'on' ) {
142
-		// checking for woocommerce, easy digital downloads and wp ecommerce
143
-		foreach ( array("is_checkout","is_cart","edd_is_checkout","wpsc_is_cart","wpsc_is_checkout") as $shopCond ) {
144
-			if ( function_exists($shopCond) && $shopCond() ) {
145
-				$ao_noptimize = true;
146
-				break;
147
-			}
148
-		}
149
-	}
135
+    // if setting says not to optimize logged in user and user is logged in
136
+    if ( get_option('autoptimize_optimize_logged','on') !== 'on' && is_user_logged_in() && current_user_can('edit_posts') ) {
137
+        $ao_noptimize = true;
138
+    }
139
+
140
+    // if setting says not to optimize cart/ checkout
141
+    if ( get_option('autoptimize_optimize_checkout','on') !== 'on' ) {
142
+        // checking for woocommerce, easy digital downloads and wp ecommerce
143
+        foreach ( array("is_checkout","is_cart","edd_is_checkout","wpsc_is_cart","wpsc_is_checkout") as $shopCond ) {
144
+            if ( function_exists($shopCond) && $shopCond() ) {
145
+                $ao_noptimize = true;
146
+                break;
147
+            }
148
+        }
149
+    }
150 150
 
151 151
     // filter you can use to block autoptimization on your own terms
152 152
     $ao_noptimize = (bool) apply_filters( 'autoptimize_filter_noptimize', $ao_noptimize );
Please login to merge, or discard this patch.
classes/autoptimizeConfig.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -345,8 +345,8 @@  discard block
 block discarded – undo
345 345
 		</td>
346 346
 	</tr>
347 347
 	<?php
348
-		if ( function_exists("is_checkout") || function_exists("is_cart") || function_exists("edd_is_checkout") || function_exists("wpsc_is_cart") || function_exists("wpsc_is_checkout") ) {
349
-			?>
348
+        if ( function_exists("is_checkout") || function_exists("is_cart") || function_exists("edd_is_checkout") || function_exists("wpsc_is_cart") || function_exists("wpsc_is_checkout") ) {
349
+            ?>
350 350
 				<tr valign="top" class="<?php echo $hiddenClass;?>ao_adv">
351 351
 					<th scope="row"><?php _e('Also optimize shop cart/ checkout?','autoptimize'); ?></th>
352 352
 					<td><label class="cb_label"><input type="checkbox" name="autoptimize_optimize_checkout" <?php echo get_option('autoptimize_optimize_checkout','1')?'checked="checked" ':''; ?>/>
@@ -354,8 +354,8 @@  discard block
 block discarded – undo
354 354
 					</td>
355 355
 				</tr>
356 356
 			<?php
357
-		}
358
-	?>
357
+        }
358
+    ?>
359 359
 </table>
360 360
 </li>
361 361
 
Please login to merge, or discard this patch.