Completed
Pull Request — master (#44)
by
unknown
01:25
created
includes/wp-api-menus-v2.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@
 block discarded – undo
173 173
          *
174 174
          * @since  1.2.0
175 175
          * @param  $menu_items
176
-         * @param  $parent
176
+         * @param  integer $parent
177 177
          * @return array
178 178
          */
179 179
         private function nested_menu_items( &$menu_items, $parent = null ) {
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -372,8 +372,7 @@
 block discarded – undo
372 372
 			
373 373
 			if($item['type'] == 'taxonomy'){
374 374
                 $slug = get_term( $item['object_id'] )->slug;
375
-            }
376
-            else {
375
+            } else {
377 376
                 $slug = get_post( $item['object_id'] )->post_name;
378 377
             }
379 378
 
Please login to merge, or discard this patch.