Code Duplication    Length = 6-9 lines in 4 locations

admin_pages/general_settings/General_Settings_Admin_Page.core.php 1 location

@@ 251-258 (lines=8) @@
248
249
	}
250
251
	public function load_scripts_styles_country_settings() {
252
		//scripts
253
		wp_register_script( 'gen_settings_countries', GEN_SET_ASSETS_URL . 'gen_settings_countries.js', array( 'ee_admin_js' ), EVENT_ESPRESSO_VERSION, TRUE );
254
		wp_register_style( 'organization-css', GEN_SET_ASSETS_URL . 'organization.css', array(), EVENT_ESPRESSO_VERSION );
255
		wp_enqueue_script( 'gen_settings_countries' );
256
		wp_enqueue_style( 'organization-css' );
257
258
	}
259
260
261
	/*************		Espresso Pages 		*************/

caffeinated/modules/event_single_caff/EED_Event_Single_Caff.module.php 1 location

@@ 76-81 (lines=6) @@
73
74
75
76
	public static function enqueue_scripts_styles() {
77
		wp_register_style( 'eed-event-single-sortable', EVENT_SINGLE_CAFF_ASSETS_URL . 'eed_event_single_sortable.css', array(), EVENT_ESPRESSO_VERSION );
78
		wp_enqueue_style( 'eed-event-single-sortable' );
79
		wp_register_script( 'eed-event-single-sortable', EVENT_SINGLE_CAFF_ASSETS_URL . 'eed_event_single_sortable.js', array( 'jquery-ui-sortable' ), EVENT_ESPRESSO_VERSION, true );
80
		wp_enqueue_script( 'eed-event-single-sortable' );
81
	}
82
83
84

core/EE_PUE.core.php 1 location

@@ 234-240 (lines=7) @@
231
	 * enqueue scripts/styles needed for data collection optin
232
	 * @return void
233
	 */
234
	function espresso_data_collection_enqueue_scripts() {
235
		wp_register_script( 'ee-data-optin-js', EE_GLOBAL_ASSETS_URL . 'scripts/ee-data-optin.js', array('jquery'), EVENT_ESPRESSO_VERSION, TRUE );
236
		wp_register_style( 'ee-data-optin-css', EE_GLOBAL_ASSETS_URL . 'css/ee-data-optin.css', array(), EVENT_ESPRESSO_VERSION );
237
238
		wp_enqueue_script('ee-data-optin-js');
239
		wp_enqueue_style('ee-data-optin-css');
240
	}
241
242
243

admin_pages/maintenance/Maintenance_Admin_Page.core.php 1 location

@@ 476-484 (lines=9) @@
473
474
475
476
	public function load_scripts_styles() {
477
		wp_enqueue_script('ee_admin_js');
478
//		wp_enqueue_media();
479
//		wp_enqueue_script('media-upload');
480
		wp_enqueue_script('ee-maintenance',EE_MAINTENANCE_ASSETS_URL.'/ee-maintenance.js',array('jquery'),EVENT_ESPRESSO_VERSION,true);
481
482
		wp_register_style( 'espresso_maintenance', EE_MAINTENANCE_ASSETS_URL . 'ee-maintenance.css', array(), EVENT_ESPRESSO_VERSION );
483
		wp_enqueue_style('espresso_maintenance');
484
	}
485
486
487