Fixed template validation bug
This commit is contained in:
@@ -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'];
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user