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( $remove_cssjs_singles ) ) ) { $new_array = array(); foreach ( $remove_cssjs_singles as $match => $data ) { if ( empty( $data['includes'] ) ) { continue; } $new_array[] = array( 'url_pattern' => $match, 'action' => isset( $data['action'] ) ? $data['action'] : 'exclude', 'includes' => $data['includes'], 'includes_content' => $data['includes_content'], ); } $remove_cssjs_singles = $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">
|