|
@@ 347-349 (lines=3) @@
|
| 344 |
|
$preconns = array(); |
| 345 |
|
|
| 346 |
|
// Get settings and store in array. |
| 347 |
|
if ( array_key_exists( 'autoptimize_extra_text_field_2', $options ) ) { |
| 348 |
|
$preconns = array_filter( array_map( 'trim', explode( ',', $options['autoptimize_extra_text_field_2'] ) ) ); |
| 349 |
|
} |
| 350 |
|
$preconns = apply_filters( 'autoptimize_extra_filter_tobepreconn', $preconns ); |
| 351 |
|
|
| 352 |
|
// Walk array, extract domain and add to new array with crossorigin attribute. |
|
@@ 402-404 (lines=3) @@
|
| 399 |
|
// make array from comma separated list. |
| 400 |
|
$options = $this->options; |
| 401 |
|
$preloads = array(); |
| 402 |
|
if ( array_key_exists( 'autoptimize_extra_text_field_7', $options ) ) { |
| 403 |
|
$preloads = array_filter( array_map( 'trim', explode( ',', $options['autoptimize_extra_text_field_7'] ) ) ); |
| 404 |
|
} |
| 405 |
|
$preloads = apply_filters( 'autoptimize_filter_extra_tobepreloaded', $preloads ); |
| 406 |
|
|
| 407 |
|
// immediately return if nothing to be preloaded. |