Plugin Directory

Changeset 1460931


Ignore:
Timestamp:
07/26/2016 04:12:47 PM (10 years ago)
Author:
rootabout
Message:

update to v 1.1.5 - fixed a routes library issue - POST was not being generated properly, GET was instead

Location:
admin-builder/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • admin-builder/trunk/admin_builder.php

    r1455978 r1460931  
    44  Plugin URI: http://admin-builder.com
    55  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.5
     6  Version: 1.1.6
    77  Author: rootabout
    88  Author URI: http://admin-builder.com
  • admin-builder/trunk/inc/abRoutes.php

    r1455978 r1460931  
    1212          global $abGen;
    1313          $this->generalArr = $generalArr;
     14          // $abGen->showArr($this->generalArr->menus);
     15
    1416          add_action('rest_api_init', array($this, 'abRoutesInit'));
    1517      }
     
    1719        {
    1820            global $abGen;
     21
    1922
    2023            foreach ($this->generalArr->menus as $key) {
     
    2730                            $namespace = (isset($cKey->namespace)) ? $cKey->namespace : '';
    2831                            $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';
    3033                            register_rest_route($namespace, $route_path,
    3134                            array(
     
    3336                              'callback' => $callbackFunction,
    3437                              'args' => array(
    35                                 'id' => array(
    36                                   'validate_callback' => function ($param, $request, $key) {
    37                                     return is_numeric($param);
    38                                   },
    39                                 ),
    4038                              ),
    4139                            ));
     40
    4241                        }
    4342                    }
  • admin-builder/trunk/readme.txt

    r1455978 r1460931  
    55Requires at least: 4.0
    66Tested up to: 4.5
    7 Stable tag: 1.1.5
     7Stable tag: 1.1.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    169169  Added routes php file ... missed in the previous version update
    170170
     171  = 1.1.6 =
     172Fixed a bug in the routes functionality where post was not being generated, just GET
     173
    171174== Arbitrary section ==
    172175
Note: See TracChangeset for help on using the changeset viewer.