Merge pull request #168 from svenl77/master

Make sure $footer_text is returned if( $pagenow !== 'user-new.php' ) …
This commit is contained in:
Champ Camba
2016-09-11 12:27:40 +08:00
committed by GitHub
+3 -3
View File
@@ -4,14 +4,14 @@
*** @Add community role to user creatino page
***/
add_action('admin_footer_text', 'um_add_custom_user_profile_fields');
function um_add_custom_user_profile_fields() {
function um_add_custom_user_profile_fields($footer_text) {
global $ultimatemember, $pagenow;
if( $pagenow !== 'user-new.php' )
return;
return $footer_text;
if( !current_user_can('manage_options') )
return false;
return $footer_text;
?>
<table id="table_my_custom_field" style="display:none;">