Changeset 1460931
- Timestamp:
- 07/26/2016 04:12:47 PM (10 years ago)
- Location:
- admin-builder/trunk
- Files:
-
- 3 edited
-
admin_builder.php (modified) (1 diff)
-
inc/abRoutes.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
admin-builder/trunk/admin_builder.php
r1455978 r1460931 4 4 Plugin URI: http://admin-builder.com 5 5 Description: A plugin that generates admin panel pages & posts,sidebars,custom admin pages with tabs, custom post types, rest routes, meta boxes and fields (with unlimited textbox, textarea, checkbox, custom select (dropdown box), datepicker, timepicker, colorpicker, upload media fields, with configurable options) Based on what's exported from http://admin-builder.com 6 Version: 1.1. 56 Version: 1.1.6 7 7 Author: rootabout 8 8 Author URI: http://admin-builder.com -
admin-builder/trunk/inc/abRoutes.php
r1455978 r1460931 12 12 global $abGen; 13 13 $this->generalArr = $generalArr; 14 // $abGen->showArr($this->generalArr->menus); 15 14 16 add_action('rest_api_init', array($this, 'abRoutesInit')); 15 17 } … … 17 19 { 18 20 global $abGen; 21 19 22 20 23 foreach ($this->generalArr->menus as $key) { … … 27 30 $namespace = (isset($cKey->namespace)) ? $cKey->namespace : ''; 28 31 $route_path = (isset($cKey->route_path) && !empty($cKey->route_path)) ? $cKey->route_path : ''; 29 $rRMethod = (isset($ key->rRMethod) && $key->rRMethod === 'post') ? 'POST' : 'GET';32 $rRMethod = (isset($cKey->rRMethod) && $cKey->rRMethod === 'post') ? 'POST' : 'GET'; 30 33 register_rest_route($namespace, $route_path, 31 34 array( … … 33 36 'callback' => $callbackFunction, 34 37 'args' => array( 35 'id' => array(36 'validate_callback' => function ($param, $request, $key) {37 return is_numeric($param);38 },39 ),40 38 ), 41 39 )); 40 42 41 } 43 42 } -
admin-builder/trunk/readme.txt
r1455978 r1460931 5 5 Requires at least: 4.0 6 6 Tested up to: 4.5 7 Stable tag: 1.1. 57 Stable tag: 1.1.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 169 169 Added routes php file ... missed in the previous version update 170 170 171 = 1.1.6 = 172 Fixed a bug in the routes functionality where post was not being generated, just GET 173 171 174 == Arbitrary section == 172 175
Note: See TracChangeset
for help on using the changeset viewer.