Remove CSS On function does not work properly
-
Hi support,
The ‘Remove CSS On’ function does not seem to work properly.
Maybe it has to do with this:/** * Common shared data and options. * * @param string $key * @return array */ public static function get_common($key = '') { $_common = []; $_common['enable_on'] = [ 'all' => esc_html__('All Pages', 'debloat'), 'single' => esc_html__('Single Post/Article', 'debloat'), 'pages' => esc_html__('Pages', 'delobat'), 'home' => esc_html__('Homepage', 'delobat'), 'archives' => esc_html__('Archives', 'delobat'), 'categories' => esc_html__('Categories', 'delobat'), 'search' => esc_html__('Search', 'delobat'), ];does not completely seem to correspondent with:
/** * Conditions test to see if current page matches in the provided valid conditions. * * @param array $enable_on * @return boolean */ public function check_enabled(array $enable_on) { if (in_array('all', $enable_on)) { return true; } $conditions = [ 'pages' => 'is_page', 'posts' => 'is_single', 'archives' => 'is_archive', 'archive' => 'is_archive', // Alias 'categories' => 'is_category', 'tags' => 'is_tag', 'search' => 'is_search', '404' => 'is_404', 'home' => function() { return is_home() || is_front_page(); }, ];I am no coder so I could be wrong, but I do think the ‘Remove CSS On’ selection options do not work as they should.
The topic ‘Remove CSS On function does not work properly’ is closed to new replies.