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' ); ?>

array( 'user-experience-remove-cssjs', 'includes' ), 'label' => esc_html__( 'Remove list:', 'w3-total-cache' ), 'control' => 'textarea', 'disabled' => ! UserExperience_Remove_CssJs_Extension::is_enabled(), 'description' => array(), 'excerpt' => esc_html__( 'Specify absolute or relative URLs, or file names to be excluded from loading on the homepage. Include one entry per line, e.g. (googletagmanager.com, /wp-content/plugins/woocommerce/, myscript.js, name="myscript", etc.)', 'w3-total-cache' ), 'show_learn_more' => false, 'no_wrap' => true, ) ); ?>
', '', '', '' ), array( 'a' => array( 'href' => array(), ), 'em' => array(), ) ); } Util_Ui::pro_wrap_maybe_end( 'remove_cssjs_home', false ); ?>

/>

', '', '', '' ), array( 'a' => array( 'href' => array(), ), 'em' => array(), ) ); } Util_Ui::pro_wrap_maybe_end( 'remove_cssjs_singles', false ); ?>