get_array( 'user-experience-remove-cssjs-singles' ); // If old data structure convert to new. // Old data structure used url_pattern as the key for each block. New uses indicies and has url_pattern within. if ( ! is_numeric( key( $w3tc_remove_cssjs_singles ) ) ) { $w3tc_new_array = array(); foreach ( $w3tc_remove_cssjs_singles as $w3tc_match => $w3tc_data ) { if ( empty( $w3tc_data['includes'] ) ) { continue; } $w3tc_new_array[] = array( 'url_pattern' => $w3tc_match, 'action' => isset( $w3tc_data['action'] ) ? $w3tc_data['action'] : 'exclude', 'includes' => $w3tc_data['includes'], 'includes_content' => $w3tc_data['includes_content'], ); } $w3tc_remove_cssjs_singles = $w3tc_new_array; } Util_Ui::postbox_header( esc_html__( 'Remove CSS/JS On Homepage', 'w3-total-cache' ), '', 'remove-cssjs' ); ?>
/>
|
>
/>
/wp-content/plugins/example-plugin/',
array(
'br' => array(),
)
);
?>
/wp-content/themes/example-script.js
|
|
|
|
|
|
/example-page/
|
|
|
<span class="example-class">
|