| @@ 327-332 (lines=6) @@ | ||
| 324 |                         $scriptsrc = 'try{' . $scriptsrc . '}catch(e){}'; | 
                                |
| 325 | }  | 
                                |
| 326 | $tmpscriptsrc = apply_filters( 'autoptimize_js_individual_script', $scriptsrc, $script );  | 
                                |
| 327 |                     if ( has_filter( 'autoptimize_js_individual_script' ) && ! empty( $tmpscriptsrc ) ) { | 
                                |
| 328 | $scriptsrc = $tmpscriptsrc;  | 
                                |
| 329 | $this->alreadyminified = true;  | 
                                |
| 330 |                     } else if ( $this->can_inject_late($script) ) { | 
                                |
| 331 | $scriptsrc = self::build_injectlater_marker($script, md5($scriptsrc));  | 
                                |
| 332 | }  | 
                                |
| 333 | $this->jscode .= "\n" . $scriptsrc;  | 
                                |
| 334 |                 }/*else{ | 
                                |
| 335 | //Couldn't read JS. Maybe getpath isn't working?  | 
                                |
| @@ 642-647 (lines=6) @@ | ||
| 639 | $css = self::fixurls( $cssPath, file_get_contents( $cssPath ) );  | 
                                |
| 640 |                     $css = preg_replace( '/\x{EF}\x{BB}\x{BF}/', '', $css ); | 
                                |
| 641 | $tmpstyle = apply_filters( 'autoptimize_css_individual_style', $css, $cssPath );  | 
                                |
| 642 |                     if ( has_filter( 'autoptimize_css_individual_style' ) && ! empty( $tmpstyle ) ) { | 
                                |
| 643 | $css = $tmpstyle;  | 
                                |
| 644 | $this->alreadyminified = true;  | 
                                |
| 645 |                     } elseif ( $this->can_inject_late( $cssPath, $css ) ) { | 
                                |
| 646 | $css = self::build_injectlater_marker( $cssPath, md5( $css ) );  | 
                                |
| 647 | }  | 
                                |
| 648 |                 } else { | 
                                |
| 649 | // Couldn't read CSS. Maybe getpath isn't working?  | 
                                |
| 650 | $css = '';  | 
                                |
| @@ 705-710 (lines=6) @@ | ||
| 702 | $code = addcslashes( self::fixurls( $path, file_get_contents( $path ) ), "\\" );  | 
                                |
| 703 |                             $code = preg_replace( '/\x{EF}\x{BB}\x{BF}/', '', $code ); | 
                                |
| 704 | $tmpstyle = apply_filters( 'autoptimize_css_individual_style', $code, '' );  | 
                                |
| 705 |                             if ( has_filter( 'autoptimize_css_individual_style' ) && ! empty( $tmpstyle ) ) { | 
                                |
| 706 | $code = $tmpstyle;  | 
                                |
| 707 | $this->alreadyminified = true;  | 
                                |
| 708 |                             } elseif ( $this->can_inject_late( $path, $code ) ) { | 
                                |
| 709 | $code = self::build_injectlater_marker( $path, md5( $code ) );  | 
                                |
| 710 | }  | 
                                |
| 711 | ||
| 712 |                             if ( ! empty( $code ) ) { | 
                                |
| 713 | $tmp_thiscss = preg_replace( '#(/\*FILESTART\*/.*)' . preg_quote( $import, '#' ) . '#Us', '/*FILESTART2*/' . $code . '$1', $thiscss );  | 
                                |