classes/autoptimizeHTML.php 1 location
                
                
                    
                                                
                                                    
                                 | 
                                
                                    @@ 17-20 (lines=4) @@
                                 | 
                            
                                                            
                                    | 14 | 
                                     | 
                                              | 
                                
                                                            
                                    | 15 | 
                                     | 
                                            // filter to add strings to be excluded from HTML minification  | 
                                
                                                            
                                    | 16 | 
                                     | 
                                            $excludeHTML = apply_filters( 'autoptimize_filter_html_exclude','' );  | 
                                
                                                            
                                    | 17 | 
                                     | 
                                            if ($excludeHTML!=="") { | 
                                
                                                            
                                    | 18 | 
                                     | 
                                                $exclHTMLArr = array_filter(array_map('trim',explode(",",$excludeHTML))); | 
                                
                                                            
                                    | 19 | 
                                     | 
                                                $this->exclude = array_merge($exclHTMLArr,$this->exclude);  | 
                                
                                                            
                                    | 20 | 
                                     | 
                                            }  | 
                                
                                                            
                                    | 21 | 
                                     | 
                                              | 
                                
                                                            
                                    | 22 | 
                                     | 
                                            // Nothing else for HTML  | 
                                
                                                            
                                    | 23 | 
                                     | 
                                            return true;  | 
                                
                                                                        
                 
                                                            
                    
classes/autoptimizeStyles.php 1 location
                
                
                    
                                                
                                                    
                                 | 
                                
                                    @@ 64-68 (lines=5) @@
                                 | 
                            
                                                            
                                    | 61 | 
                                     | 
                                            // what CSS shouldn't be autoptimized
  | 
                                
                                                            
                                    | 62 | 
                                     | 
                                            $excludeCSS = $options['css_exclude'];
  | 
                                
                                                            
                                    | 63 | 
                                     | 
                                            $excludeCSS = apply_filters( 'autoptimize_filter_css_exclude', $excludeCSS );
  | 
                                
                                                            
                                    | 64 | 
                                     | 
                                            if ($excludeCSS!=="") {
 | 
                                
                                                            
                                    | 65 | 
                                     | 
                                                $this->dontmove = array_filter(array_map('trim',explode(",",$excludeCSS)));
 | 
                                
                                                            
                                    | 66 | 
                                     | 
                                            } else {
 | 
                                
                                                            
                                    | 67 | 
                                     | 
                                                $this->dontmove = "";
  | 
                                
                                                            
                                    | 68 | 
                                     | 
                                            }
  | 
                                
                                                            
                                    | 69 | 
                                     | 
                                    
  | 
                                
                                                            
                                    | 70 | 
                                     | 
                                            // should we defer css?
  | 
                                
                                                            
                                    | 71 | 
                                     | 
                                            // value: true/ false
  |