Code Duplication    Length = 4-7 lines in 2 locations

core/admin/EE_Admin.core.php 1 location

@@ 546-549 (lines=4) @@
543
		// register cookie script for future dependencies
544
		wp_register_script('jquery-cookie', EE_THIRD_PARTY_URL . 'joyride/jquery.cookie.js', array('jquery'), '2.1', TRUE );
545
		// jquery_validate loading is turned OFF by default, but prior to the admin_enqueue_scripts hook, can be turned back on again via:  add_filter( 'FHEE_load_jquery_validate', '__return_true' );
546
		if ( apply_filters( 'FHEE_load_jquery_validate', FALSE ) ) {
547
			// register jQuery Validate
548
			wp_register_script('jquery-validate', EE_GLOBAL_ASSETS_URL . 'scripts/jquery.validate.min.js', array('jquery'), '1.11.1', TRUE);
549
		}
550
		//joyride is turned OFF by default, but prior to the admin_enqueue_scripts hook, can be turned back on again vai: add_filter('FHEE_load_joyride', '__return_true' );
551
		if ( apply_filters( 'FHEE_load_joyride', FALSE ) ) {
552
			//joyride style

core/EE_System.core.php 1 location

@@ 1257-1263 (lines=7) @@
1254
	 */
1255
	public function wp_enqueue_scripts() {
1256
		// unlike other systems, EE_System_scripts loading is turned ON by default, but prior to the init hook, can be turned off via: add_filter( 'FHEE_load_EE_System_scripts', '__return_false' );
1257
		if ( apply_filters( 'FHEE_load_EE_System_scripts', TRUE ) ) {
1258
			// jquery_validate loading is turned OFF by default, but prior to the wp_enqueue_scripts hook, can be turned back on again via:  add_filter( 'FHEE_load_jquery_validate', '__return_true' );
1259
			if ( apply_filters( 'FHEE_load_jquery_validate', FALSE ) ) {
1260
				// register jQuery Validate
1261
				wp_register_script( 'jquery-validate', EE_GLOBAL_ASSETS_URL . 'scripts/jquery.validate.min.js', array('jquery'), '1.11.1', TRUE );
1262
			}
1263
		}
1264
	}
1265
1266