Completed
Push — master ( 0e4fe9...f5c78e )
by Fulvio
02:21
created
wp-api-menus.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -46,18 +46,18 @@
 block discarded – undo
46 46
 	 *
47 47
 	 * @since 1.0.0
48 48
 	 */
49
-    function wp_rest_menus_init() {
49
+	function wp_rest_menus_init() {
50 50
 
51
-        if ( ! defined( 'JSON_API_VERSION' ) &&
52
-             ! in_array( 'json-rest-api/plugin.php', get_option( 'active_plugins' ) ) ) {
51
+		if ( ! defined( 'JSON_API_VERSION' ) &&
52
+			 ! in_array( 'json-rest-api/plugin.php', get_option( 'active_plugins' ) ) ) {
53 53
 							 $class = new WP_REST_Menus();
54 54
 							 add_filter( 'rest_api_init', array( $class, 'register_routes' ) );
55
-        } else {
56
-            $class = new WP_JSON_Menus();
57
-            add_filter( 'json_endpoints', array( $class, 'register_routes' ) );
58
-        }
59
-    }
55
+		} else {
56
+			$class = new WP_JSON_Menus();
57
+			add_filter( 'json_endpoints', array( $class, 'register_routes' ) );
58
+		}
59
+	}
60 60
 
61
-    add_action( 'init', 'wp_rest_menus_init' );
61
+	add_action( 'init', 'wp_rest_menus_init' );
62 62
 
63 63
 endif;
Please login to merge, or discard this patch.