@@ 188-192 (lines=5) @@ | ||
185 | $this->inject_min_late = apply_filters( 'autoptimize_filter_css_inject_min_late', true ); |
|
186 | ||
187 | // Remove everything that's not the header. |
|
188 | if ( apply_filters( 'autoptimize_filter_css_justhead', $options['justhead'] ) ) { |
|
189 | $content = explode( '</head>', $this->content, 2 ); |
|
190 | $this->content = $content[0] . '</head>'; |
|
191 | $this->restofcontent = $content[1]; |
|
192 | } |
|
193 | ||
194 | // Determine whether we're doing CSS-files aggregation or not. |
|
195 | if ( isset( $options['aggregate'] ) && ! $options['aggregate'] ) { |
@@ 232-236 (lines=5) @@ | ||
229 | } |
|
230 | ||
231 | // only header? |
|
232 | if ( apply_filters( 'autoptimize_filter_js_justhead', $options['justhead'] ) ) { |
|
233 | $content = explode( '</head>', $this->content, 2 ); |
|
234 | $this->content = $content[0] . '</head>'; |
|
235 | $this->restofcontent = $content[1]; |
|
236 | } |
|
237 | ||
238 | // Determine whether we're doing JS-files aggregation or not. |
|
239 | if ( ! $options['aggregate'] ) { |