Plugin Directory

Changeset 3377606


Ignore:
Timestamp:
10/13/2025 02:42:26 PM (2 months ago)
Author:
jetmonsters
Message:

Version: 2.4.8

Location:
mp-restaurant-menu/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • mp-restaurant-menu/trunk/classes/controllers/class-controller-customer.php

    r2623646 r3377606  
    125125    public function action_get_customer_information() {
    126126
    127         $customer_object = NULL;
    128 
    129         if ( isset( $_REQUEST['customer_id'] ) ) {
     127        $this->date['success'] = false;
     128
     129        if ( is_admin() && current_user_can('manage_restaurant_menu') && isset( $_REQUEST['customer_id'] ) ) {
     130
    130131            $customer_object = $this->get('customer')->get_customer(
    131                 array('field' => 'id', 'value' => sanitize_text_field( wp_unslash( $_REQUEST['customer_id'] ) ))
     132                array('field' => 'id', 'value' => sanitize_text_field( wp_unslash( $_REQUEST['customer_id'] ) ) )
    132133            );
    133         }
    134 
    135         if (!empty($customer_object)) {
    136             $this->date['success'] = true;
    137             $this->date['data']['customer_information'] = View::get_instance()->render_html('../admin/metaboxes/order/customer-information', array('customer_id' => $customer_object->id), false);
    138         } else {
    139             $this->date['success'] = false;
     134
     135            if ( ! empty( $customer_object ) ) {
     136
     137                $this->date['success'] = true;
     138                $this->date['data']['customer_information'] = View::get_instance()->render_html('../admin/metaboxes/order/customer-information', array('customer_id' => $customer_object->id), false);
     139            }
    140140        }
    141141
  • mp-restaurant-menu/trunk/readme.txt

    r3317052 r3377606  
    44Tags: restaurant menu, food menu, restaurant, food delivery, cafe menu, food ordering system, online ordering, store, cafe, pizza, pizzeria, food, food order, delivery, toppings, sell, e-commerce, recipe, cooking, ingredients, recipes
    55Requires at least: 4.6
    6 Tested up to: 6.7
    7 Stable tag: 2.4.7
     6Tested up to: 6.8
     7Stable tag: 2.4.8
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8787== Changelog ==
    8888
     89= 2.4.8, Jun 24 2025 =
     90* Security – improved permission checks for viewing customer data.
     91
    8992= 2.4.7, Jun 24 2025 =
    9093* Security – improved export process validation.
  • mp-restaurant-menu/trunk/restaurant-menu.php

    r3317052 r3377606  
    44 * Plugin URI: https://motopress.com/products/restaurant-menu/
    55 * Description: This plugin gives you the power to effectively create, maintain and display online menus for almost any kind of restaurant, cafes and other typical food establishments.
    6  * Version: 2.4.7
     6 * Version: 2.4.8
    77 * Author: MotoPress
    88 * Author URI: https://motopress.com
  • mp-restaurant-menu/trunk/templates-functions/restaurant-menu-shop-functions.php

    r2895299 r3377606  
    984984    $data = wp_parse_args($data, $argc);
    985985   
    986     $customers = models\Customer::get_instance()->get_customers();
     986    $customers = models\Customer::get_instance()->get_customers(
     987        array(
     988            'number' => null,
     989            'fields' => array('id', 'name')
     990        )
     991    );
     992
    987993    if (!empty($customers)) {
    988994        foreach ($customers as $customer) {
Note: See TracChangeset for help on using the changeset viewer.