| @@ 47-50 (lines=4) @@ | ||
| 44 | ||
| 45 | // Filterable strings to be excluded from HTML minification. |
|
| 46 | $exclude = apply_filters( 'autoptimize_filter_html_exclude', '' ); |
|
| 47 | if ( '' !== $exclude ) { |
|
| 48 | $exclude_arr = array_filter( array_map( 'trim', explode( ',', $exclude ) ) ); |
|
| 49 | $this->exclude = array_merge( $exclude_arr, $this->exclude ); |
|
| 50 | } |
|
| 51 | ||
| 52 | // Nothing else for HTML! |
|
| 53 | return true; |
|
| @@ 210-214 (lines=5) @@ | ||
| 207 | ||
| 208 | // List of CSS strings which are excluded from autoptimization. |
|
| 209 | $exclude_css = apply_filters( 'autoptimize_filter_css_exclude', $options['css_exclude'], $this->content ); |
|
| 210 | if ( '' !== $exclude_css ) { |
|
| 211 | $this->dontmove = array_filter( array_map( 'trim', explode( ',', $exclude_css ) ) ); |
|
| 212 | } else { |
|
| 213 | $this->dontmove = array(); |
|
| 214 | } |
|
| 215 | ||
| 216 | // forcefully exclude CSS with data-noptimize attrib. |
|
| 217 | $this->dontmove[] = 'data-noptimize'; |
|