From 5ea18554d0dadd3f9a6d90011255ad45330da307 Mon Sep 17 00:00:00 2001 From: Wasim Akhtar <53761154+WasimM3@users.noreply.github.com> Date: Wed, 20 May 2020 15:20:10 +0530 Subject: [PATCH] #4326 - Changed the filter name --- templates/features.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/templates/features.php b/templates/features.php index 9ef8b0d7d..57675e27a 100644 --- a/templates/features.php +++ b/templates/features.php @@ -8466,12 +8466,8 @@ function ampforwp_update_taxonomy_meta($term_id, $term_id1){ add_action('create_'.esc_attr($taxonomy), 'ampforwp_save_taxonomy_meta', 10); add_action('edited_'.esc_attr($taxonomy), 'ampforwp_update_taxonomy_meta',10,2); add_action('create_'.esc_attr($taxonomy), 'ampforwp_save_taxonomy_meta', 10); - if($taxonomy!='category' && isset($_REQUEST['tag_ID'])){ - add_action ( 'edit_tag_form_fields', 'ampforwp_extra_category_fields'); - }else{ - add_action ( 'edit_'.$taxonomy.'_form_fields', 'ampforwp_extra_category_fields'); - } - add_action ( $taxonomy.'_add_form_fields', 'ampforwp_extra_category_fields'); + add_action (esc_attr($taxonomy).'_edit_form_fields', 'ampforwp_extra_category_fields'); + add_action (esc_attr($taxonomy).'_add_form_fields', 'ampforwp_extra_category_fields'); } function ampforwp_extra_category_fields( $tag ) { $label = 'Category';