Skip to content

Commit fb3bee3

Browse files
authored
Merge pull request #406 from Codeinwp/fix/category-saving
fix: remove old textarea input for categories
2 parents 1bf370a + 94dfeed commit fb3bee3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

inc/admin.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,6 @@ function( $pm ) {
313313
$aviary_api_key = isset( $_REQUEST['aviary_api_key'] ) ? sanitize_text_field( $_REQUEST['aviary_api_key'] ) : '';
314314
$productmeta_style = isset( $_REQUEST['productmeta_style'] ) ? sanitize_text_field( $_REQUEST['productmeta_style'] ) : '';
315315
$productmeta_js = isset( $_REQUEST['productmeta_js'] ) ? sanitize_text_field( $_REQUEST['productmeta_js'] ) : '';
316-
$productmeta_categories = isset( $_REQUEST['productmeta_categories'] ) ? sanitize_textarea_field( $_REQUEST['productmeta_categories'] ) : '';
317-
318316

319317
if ( strlen( $productmeta_name ) > 50 ) {
320318
$resp = array(
@@ -331,7 +329,6 @@ function( $pm ) {
331329
'send_file_attachment' => $send_file_attachment,
332330
'show_cart_thumb' => $show_cart_thumb,
333331
'aviary_api_key' => trim( $aviary_api_key ),
334-
'productmeta_categories' => $productmeta_categories,
335332
'the_meta' => $product_meta,
336333
'productmeta_created' => current_time( 'mysql' ),
337334
);
@@ -476,7 +473,6 @@ function( $pm ) {
476473
$aviary_api_key = isset( $_REQUEST['aviary_api_key'] ) ? sanitize_text_field( $_REQUEST['aviary_api_key'] ) : '';
477474
$productmeta_style = isset( $_REQUEST['productmeta_style'] ) ? sanitize_text_field( $_REQUEST['productmeta_style'] ) : '';
478475
$productmeta_js = isset( $_REQUEST['productmeta_js'] ) ? sanitize_text_field( $_REQUEST['productmeta_js'] ) : '';
479-
$productmeta_categories = isset( $_REQUEST['productmeta_categories'] ) ? sanitize_textarea_field( $_REQUEST['productmeta_categories'] ) : '';
480476

481477
if ( strlen( $productmeta_name ) > 50 ) {
482478
$resp = array(
@@ -493,7 +489,6 @@ function( $pm ) {
493489
'send_file_attachment' => $send_file_attachment,
494490
'show_cart_thumb' => $show_cart_thumb,
495491
'aviary_api_key' => trim( $aviary_api_key ),
496-
'productmeta_categories' => $productmeta_categories,
497492
'the_meta' => $product_meta,
498493
);
499494
if ( ! ppom_is_legacy_user() ) {

0 commit comments

Comments
 (0)