Changeset 2197501
- Timestamp:
- 11/20/2019 03:26:14 PM (6 years ago)
- Location:
- wp-rest-api-v2-menus
- Files:
-
- 4 added
- 3 edited
-
tags/0.7.2 (added)
-
tags/0.7.2/README.md (added)
-
tags/0.7.2/readme.txt (added)
-
tags/0.7.2/wp-rest-api-v2-menus.php (added)
-
trunk/README.md (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wp-rest-api-v2-menus.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-rest-api-v2-menus/trunk/README.md
r2117212 r2197501 1 1 # WP REST API V2 Menus 2 [](https://scrutinizer-ci.com/g/thebatclaudio/wp-rest-api-v2-menus/build-status/master) 3 2 4 Adding menus endpoints on WP REST API v2 3 5 -
wp-rest-api-v2-menus/trunk/readme.txt
r2118388 r2197501 4 4 Requires at least: 4.4 5 5 Tested up to: 5.2.2 6 Stable tag: 0.7. 16 Stable tag: 0.7.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 45 45 == Changelog == 46 46 47 0.7.2 - Added slug to menu item object 48 47 49 0.7.1 - Bug fix: menu items were returned as an object instead of array 48 50 -
wp-rest-api-v2-menus/trunk/wp-rest-api-v2-menus.php
r2118388 r2197501 2 2 /* 3 3 Plugin Name: WP-REST-API V2 Menus 4 Version: 0.7. 14 Version: 0.7.2 5 5 Description: Adding menus endpoints on WP REST API v2 6 6 Author: Claudio La Barbera … … 141 141 // pull all child menu items into separate object 142 142 foreach ( $menu_items as $key => $item ) { 143 // add slug to menu items 144 $slug = basename( get_permalink($item->object_id) ); 145 $item->slug = $slug; 146 143 147 if ( $item->menu_item_parent ) { 144 148 array_push( $child_items, $item );
Note: See TracChangeset
for help on using the changeset viewer.