Changeset 3377606
- Timestamp:
- 10/13/2025 02:42:26 PM (2 months ago)
- Location:
- mp-restaurant-menu/trunk
- Files:
-
- 4 edited
-
classes/controllers/class-controller-customer.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
restaurant-menu.php (modified) (1 diff)
-
templates-functions/restaurant-menu-shop-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
mp-restaurant-menu/trunk/classes/controllers/class-controller-customer.php
r2623646 r3377606 125 125 public function action_get_customer_information() { 126 126 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 130 131 $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'] ) ) ) 132 133 ); 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 } 140 140 } 141 141 -
mp-restaurant-menu/trunk/readme.txt
r3317052 r3377606 4 4 Tags: 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 5 5 Requires at least: 4.6 6 Tested up to: 6. 77 Stable tag: 2.4. 76 Tested up to: 6.8 7 Stable tag: 2.4.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 87 87 == Changelog == 88 88 89 = 2.4.8, Jun 24 2025 = 90 * Security – improved permission checks for viewing customer data. 91 89 92 = 2.4.7, Jun 24 2025 = 90 93 * Security – improved export process validation. -
mp-restaurant-menu/trunk/restaurant-menu.php
r3317052 r3377606 4 4 * Plugin URI: https://motopress.com/products/restaurant-menu/ 5 5 * 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. 76 * Version: 2.4.8 7 7 * Author: MotoPress 8 8 * Author URI: https://motopress.com -
mp-restaurant-menu/trunk/templates-functions/restaurant-menu-shop-functions.php
r2895299 r3377606 984 984 $data = wp_parse_args($data, $argc); 985 985 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 987 993 if (!empty($customers)) { 988 994 foreach ($customers as $customer) {
Note: See TracChangeset
for help on using the changeset viewer.