- add apply_shortcodes

This commit is contained in:
ashubawork
2020-04-03 11:21:35 +03:00
parent 9f5f7da354
commit 523e00133a
5 changed files with 74 additions and 14 deletions
+6 -1
View File
@@ -1055,7 +1055,12 @@ if ( ! class_exists( 'um\admin\core\Admin_Builder' ) ) {
}
$output = '<div class="um-admin-preview-overlay"></div>';
$output .= do_shortcode('[ultimatemember form_id="' . $arg1 . '" /]');
if ( version_compare( get_bloginfo('version'),'5.4', '<' ) ) {
$output .= do_shortcode('[ultimatemember form_id="' . $arg1 . '" /]');
} else {
$output .= apply_shortcodes('[ultimatemember form_id="' . $arg1 . '" /]');
}
break;