Completed
Push — master ( 6cd283...735052 )
by Scott Kingsley
03:58
created
wordpress-fields-api.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -22,32 +22,32 @@  discard block
 block discarded – undo
22 22
 /**
23 23
  * The absolute server path to the fields API directory.
24 24
  */
25
-define( 'WP_FIELDS_API_DIR', plugin_dir_path( __FILE__ ) );
25
+define('WP_FIELDS_API_DIR', plugin_dir_path(__FILE__));
26 26
 
27 27
 /**
28 28
  * On `plugins_loaded`, create an instance of the Fields API manager class.
29 29
  */
30 30
 function _wp_fields_api_include() {
31 31
 
32
-	require_once( WP_FIELDS_API_DIR . 'implementation/wp-includes/fields-api/class-wp-fields-api.php' );
32
+	require_once(WP_FIELDS_API_DIR.'implementation/wp-includes/fields-api/class-wp-fields-api.php');
33 33
 
34 34
 	// Init Fields API class
35 35
 	$GLOBALS['wp_fields'] = WP_Fields_API::get_instance();
36 36
 
37 37
 }
38 38
 
39
-add_action( 'plugins_loaded', '_wp_fields_api_include', 8 );
39
+add_action('plugins_loaded', '_wp_fields_api_include', 8);
40 40
 
41 41
 /**
42 42
  * Implement Fields API Customizer instead of WP Core Customizer.
43 43
  */
44 44
 function _wp_fields_api_customize_include() {
45 45
 
46
-	if ( ! ( ( isset( $_REQUEST['wp_customize'] ) && 'on' == $_REQUEST['wp_customize'] ) || ( is_admin() && 'customize.php' == basename( $_SERVER['PHP_SELF'] ) ) ) ) {
46
+	if ( ! ((isset($_REQUEST['wp_customize']) && 'on' == $_REQUEST['wp_customize']) || (is_admin() && 'customize.php' == basename($_SERVER['PHP_SELF'])))) {
47 47
 		return;
48 48
 	}
49 49
 
50
-	require_once( WP_FIELDS_API_DIR . 'implementation/wp-includes/class-wp-customize-manager.php' );
50
+	require_once(WP_FIELDS_API_DIR.'implementation/wp-includes/class-wp-customize-manager.php');
51 51
 
52 52
 	// Init Customize class
53 53
 	$GLOBALS['wp_customize'] = new WP_Customize_Manager;
@@ -63,11 +63,11 @@  discard block
 block discarded – undo
63 63
 function _wp_fields_api_user_edit_include() {
64 64
 
65 65
 	// Load our overrides
66
-	require_once( WP_FIELDS_API_DIR . 'implementation/wp-admin/includes/user.php' );
67
-	require_once( WP_FIELDS_API_DIR . 'implementation/wp-admin/user-edit.php' );
66
+	require_once(WP_FIELDS_API_DIR.'implementation/wp-admin/includes/user.php');
67
+	require_once(WP_FIELDS_API_DIR.'implementation/wp-admin/user-edit.php');
68 68
 
69 69
 	// Bail on original core file, don't run the rest
70 70
 	exit;
71 71
 
72 72
 }
73
-add_action( 'load-user-edit.php', '_wp_fields_api_user_edit_include' );
74 73
\ No newline at end of file
74
+add_action('load-user-edit.php', '_wp_fields_api_user_edit_include');
75 75
\ No newline at end of file
Please login to merge, or discard this patch.