Plugin Directory

Changeset 1925935


Ignore:
Timestamp:
08/16/2018 06:04:51 PM (7 years ago)
Author:
joelworsham
Message:

2.0.10

Location:
client-dash/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • client-dash/trunk/client-dash.php

    r1910558 r1925935  
    99 * Plugin Name: Client Dash
    1010 * Description: Creating a more intuitive admin interface for clients.
    11  * Version: 2.0.9
     11 * Version: 2.0.10
    1212 * Author: Real Big Plugins
    1313 * Author URI: https://realbigplugins.com
     
    2424if ( ! class_exists( 'ClientDash' ) ) {
    2525
    26     define( 'CLIENTDASH_VERSION', '2.0.9' );
     26    define( 'CLIENTDASH_VERSION', '2.0.10' );
    2727    define( 'CLIENTDASH_DIR', plugin_dir_path( __FILE__ ) );
    2828    define( 'CLIENTDASH_URI', plugins_url( '', __FILE__ ) );
  • client-dash/trunk/core/api/class-clientdash-rest-customizations-controller.php

    r1807297 r1925935  
    104104        if ( ! current_user_can( 'customize_admin' ) ) {
    105105
    106             return new WP_Error( 'rest_forbidden', esc_html__( 'You cannot edit the customizations resource.', 'client-dash'  ), array( 'status' => $this->authorization_status_code() ) );
     106            return new WP_Error( 'rest_forbidden', esc_html__( 'You cannot edit the customizations resource.', 'client-dash' ), array( 'status' => $this->authorization_status_code() ) );
    107107        }
    108108
     
    121121        if ( ! current_user_can( 'customize_admin' ) ) {
    122122
    123             return new WP_Error( 'rest_forbidden', esc_html__( 'You cannot view the customizations resource.', 'client-dash'  ), array( 'status' => $this->authorization_status_code() ) );
     123            return new WP_Error( 'rest_forbidden', esc_html__( 'You cannot view the customizations resource.', 'client-dash' ), array( 'status' => $this->authorization_status_code() ) );
    124124        }
    125125
     
    138138        if ( ! current_user_can( 'customize_admin' ) ) {
    139139
    140             return new WP_Error( 'rest_forbidden', esc_html__( 'You cannot view the customizations resource.', 'client-dash'  ), array( 'status' => $this->authorization_status_code() ) );
     140            return new WP_Error( 'rest_forbidden', esc_html__( 'You cannot view the customizations resource.', 'client-dash' ), array( 'status' => $this->authorization_status_code() ) );
    141141        }
    142142
     
    151151    public function get_item( $request ) {
    152152
    153         $role = $request['role'];
     153        $role = urldecode( $request['role'] );
    154154
    155155        $customizations = cd_get_customizations( $role );
     
    167167    public function create_item( $request ) {
    168168
    169         $results = cd_update_role_customizations( $request['role'], array(
     169        $results = cd_update_role_customizations( urldecode( $request['role'] ), array(
    170170            'menu'      => $request['menu'],
    171171            'submenu'   => $request['submenu'],
     
    200200    public function update_item( $request ) {
    201201
    202         $role = $request['role'];
     202        $role = urldecode( $request['role'] );
    203203
    204204        if ( empty( $role ) ) {
     
    213213        $customizations = $this->prepare_item_for_database( $request );
    214214
    215         $results = cd_update_role_customizations( $request['role'], array(
     215        $results = cd_update_role_customizations( $role, array(
    216216            'menu'      => $request['menu'],
    217217            'submenu'   => $request['submenu'],
     
    242242    public function delete_item( $request ) {
    243243
    244         $role = $request['role'];
     244        $role = urldecode( $request['role'] );
    245245
    246246        if ( empty( $role ) ) {
     
    253253        }
    254254
    255         $customizations = cd_get_customizations( $request['role'] );
     255        $customizations = cd_get_customizations( $role );
    256256
    257257        if ( ! $customizations ) {
     
    266266        }
    267267
    268         $results = cd_delete_customizations( $request['role'] );
     268        $results = cd_delete_customizations( $role );
    269269
    270270        if ( $results === false ) {
  • client-dash/trunk/readme.txt

    r1910558 r1925935  
    55Requires at least: 4.7.0
    66Tested up to: 4.9.5
    7 Stable tag: 2.0.9
     7Stable tag: 2.0.10
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8888
    8989== Changelog ==
     90
     91= 2.0.10 =
     92* Fix: Potential crash with invalid Role IDs from third party plugins.
    9093
    9194= 2.0.9 =
Note: See TracChangeset for help on using the changeset viewer.