Code Duplication    Length = 4-7 lines in 2 locations

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

core/admin/EE_Admin.core.php 1 location

@@ 545-548 (lines=4) @@
542
		// register cookie script for future dependencies
543
		wp_register_script('jquery-cookie', EE_THIRD_PARTY_URL . 'joyride/jquery.cookie.js', array('jquery'), '2.1', TRUE );
544
		// 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' );
545
		if ( apply_filters( 'FHEE_load_jquery_validate', FALSE ) ) {
546
			// register jQuery Validate
547
			wp_register_script('jquery-validate', EE_GLOBAL_ASSETS_URL . 'scripts/jquery.validate.min.js', array('jquery'), '1.11.1', TRUE);
548
		}
549
		//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' );
550
		if ( apply_filters( 'FHEE_load_joyride', FALSE ) ) {
551
			//joyride style