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