From 6a07b50321f4742af2074fe62042cdd817ca347e Mon Sep 17 00:00:00 2001 From: nikitasinelnikov Date: Thu, 23 Mar 2017 20:25:41 +0200 Subject: [PATCH] Fix for Content Availability js added data and classes for conditional wrapper --- admin/core/um-admin-actions.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/admin/core/um-admin-actions.php b/admin/core/um-admin-actions.php index 6f5f44ce..b99f9a5e 100644 --- a/admin/core/um-admin-actions.php +++ b/admin/core/um-admin-actions.php @@ -71,10 +71,10 @@ } - function um_category_access_fields_create( $term ){ + function um_category_access_fields_create( $term ) { global $ultimatemember; - echo '
'; + echo '
'; echo ''; echo ' @@ -98,7 +98,8 @@ } - function um_category_access_fields_edit( $term ){ + + function um_category_access_fields_edit( $term ) { global $ultimatemember; $termID = $term->term_id; @@ -107,7 +108,7 @@ $_um_redirect= (isset( $termMeta['_um_redirect'] ) )? $termMeta['_um_redirect'] : ''; $_um_roles= (isset( $termMeta['_um_roles'] ) )? $termMeta['_um_roles'] : ''; - echo ""; + echo ''; echo ""; echo '

@@ -135,9 +136,9 @@ echo ''; echo '

' . __('Users who cannot see content will get redirected to that URL.','ultimatemember') . '

'; echo ""; - } + function um_category_access_fields_save( $termID ){ if ( isset( $_POST['_um_accessible'] ) ) {