Code Duplication    Length = 5-5 lines in 2 locations

core/EE_Front_Controller.core.php 1 location

@@ 378-382 (lines=5) @@
375
                }
376
                wp_enqueue_style('espresso_default');
377
378
                if (is_readable(get_stylesheet_directory() . EE_Config::get_current_theme() . DS . 'style.css')) {
379
                    wp_register_style('espresso_style',
380
                        get_stylesheet_directory_uri() . EE_Config::get_current_theme() . DS . 'style.css',
381
                        array('dashicons', 'espresso_default'));
382
                } else {
383
                    wp_register_style('espresso_style',
384
                        EE_TEMPLATES_URL . EE_Config::get_current_theme() . DS . 'style.css',
385
                        array('dashicons', 'espresso_default'));

modules/events_archive_filters/EED_Events_Archive_Filters.module.php 1 location

@@ 685-689 (lines=5) @@
682
		// get some style
683
		if ( apply_filters( 'FHEE_enable_default_espresso_css', FALSE ) ) {
684
			// first check uploads folder
685
			if ( is_readable( get_stylesheet_directory() . EE_Config::get_current_theme() . DS . 'archive-espresso_events.css' )) {
686
				wp_register_style( 'archive-espresso_events', get_stylesheet_directory_uri() . EE_Config::get_current_theme() . DS . 'archive-espresso_events.css', array( 'dashicons', 'espresso_default' ));
687
			} else {
688
				wp_register_style( 'archive-espresso_events', EE_TEMPLATES_URL . EE_Config::get_current_theme() . DS . 'archive-espresso_events.css', array( 'dashicons', 'espresso_default' ));
689
			}
690
			if ( is_readable( get_stylesheet_directory() . EE_Config::get_current_theme() . DS . 'archive-espresso_events.js' )) {
691
				wp_register_script( 'archive-espresso_events', get_stylesheet_directory_uri() . EE_Config::get_current_theme() . DS . 'archive-espresso_events.js', array( 'jquery-masonry' ), '1.0', TRUE  );
692
			} else {