Fixed template validation bug

This commit is contained in:
Nedim Uka
2018-10-04 10:51:18 +02:00
parent b028fb3f04
commit 7ceac97fed
2 changed files with 2 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ class Wiaas_Template_Admin_Ajax {
check_ajax_referer('wc_bundles_add_bundled_product', 'security'); check_ajax_referer('wc_bundles_add_bundled_product', 'security');
$loop = intval($_POST['id']); $loop = intval($_POST['id']);
$emplate_category_id = intval($_POST['template_category_id']); $template_category_id = intval($_POST['template_category_id']);
$title = $_POST['title']; $title = $_POST['title'];
$options = $_POST['options']; $options = $_POST['options'];

View File

@@ -34,7 +34,7 @@ function construct_template_products_class() {
* @param $template_category_slug string the name of the main wiaas category * @param $template_category_slug string the name of the main wiaas category
* @return mixed * @return mixed
*/ */
public function get_template_categories_from_meta($template_id, $template_category_slug) { public static function get_template_categories_from_meta($template_id, $template_category_slug) {
return get_post_meta($template_id, $template_category_slug, true); return get_post_meta($template_id, $template_category_slug, true);
} }