diff --git a/includes/admin/templates/role/admin-permissions.php b/includes/admin/templates/role/admin-permissions.php index 1deb427c..93113d19 100644 --- a/includes/admin/templates/role/admin-permissions.php +++ b/includes/admin/templates/role/admin-permissions.php @@ -5,56 +5,56 @@ admin_forms( array( - 'class' => 'um-role-admin um-half-column', - 'prefix_id' => 'role', - 'fields' => array( + 'class' => 'um-role-admin um-half-column', + 'prefix_id' => 'role', + 'fields' => array( array( - 'id' => '_um_can_access_wpadmin', - 'type' => 'checkbox', - 'label' => __( 'Can access wp-admin?', 'ultimate-member' ), - 'tooltip' => __( 'The core admin role must always have access to wp-admin / WordPress backend', 'ultimate-member' ), - 'value' => ! empty( $role['_um_can_access_wpadmin'] ) ? $role['_um_can_access_wpadmin'] : 0, + 'id' => '_um_can_access_wpadmin', + 'type' => 'checkbox', + 'label' => __( 'Can access wp-admin?', 'ultimate-member' ), + 'tooltip' => __( 'The core admin role must always have access to wp-admin / WordPress backend', 'ultimate-member' ), + 'value' => ! empty( $role['_um_can_access_wpadmin'] ) ? $role['_um_can_access_wpadmin'] : 0, ), array( - 'id' => '_um_can_not_see_adminbar', - 'type' => 'checkbox', - 'label' => __( 'Force hiding adminbar in frontend?', 'ultimate-member' ), - 'tooltip' => __( 'Show/hide the adminbar on frontend', 'ultimate-member' ), - 'value' => isset( $role['_um_can_not_see_adminbar'] ) ? $role['_um_can_not_see_adminbar'] : 1, + 'id' => '_um_can_not_see_adminbar', + 'type' => 'checkbox', + 'label' => __( 'Force hiding adminbar in frontend?', 'ultimate-member' ), + 'tooltip' => __( 'Mark this option if you need to hide the adminbar on frontend for this role', 'ultimate-member' ), + 'value' => isset( $role['_um_can_not_see_adminbar'] ) ? $role['_um_can_not_see_adminbar'] : 1, ), array( - 'id' => '_um_can_edit_everyone', - 'type' => 'checkbox', - 'label' => __( 'Can edit other member accounts?', 'ultimate-member' ), - 'tooltip' => __( 'Allow this role to edit accounts of other members', 'ultimate-member' ), - 'value' => ! empty( $role['_um_can_edit_everyone'] ) ? $role['_um_can_edit_everyone'] : 0, + 'id' => '_um_can_edit_everyone', + 'type' => 'checkbox', + 'label' => __( 'Can edit other member accounts?', 'ultimate-member' ), + 'tooltip' => __( 'Allow this role to edit accounts of other members', 'ultimate-member' ), + 'value' => ! empty( $role['_um_can_edit_everyone'] ) ? $role['_um_can_edit_everyone'] : 0, ), array( - 'id' => '_um_can_edit_roles', - 'type' => 'select', - 'label' => __( 'Can edit these user roles only', 'ultimate-member' ), - 'tooltip' => __( 'Which roles that role can edit, choose none to allow role to edit all member roles', 'ultimate-member' ), - 'options' => UM()->roles()->get_roles(), - 'multi' => true, - 'value' => ! empty( $role['_um_can_edit_roles'] ) ? $role['_um_can_edit_roles'] : array(), - 'conditional' => array( '_um_can_edit_everyone', '=', '1' ) + 'id' => '_um_can_edit_roles', + 'type' => 'select', + 'label' => __( 'Can edit these user roles only', 'ultimate-member' ), + 'tooltip' => __( 'Which roles that role can edit, choose none to allow role to edit all member roles', 'ultimate-member' ), + 'options' => UM()->roles()->get_roles(), + 'multi' => true, + 'value' => ! empty( $role['_um_can_edit_roles'] ) ? $role['_um_can_edit_roles'] : array(), + 'conditional' => array( '_um_can_edit_everyone', '=', '1' ) ), array( - 'id' => '_um_can_delete_everyone', - 'type' => 'checkbox', - 'label' => __( 'Can delete other member accounts?', 'ultimate-member' ), - 'tooltip' => __( 'Allow this role to edit accounts of other members', 'ultimate-member' ), - 'value' => ! empty( $role['_um_can_delete_everyone'] ) ? $role['_um_can_delete_everyone'] : 0, + 'id' => '_um_can_delete_everyone', + 'type' => 'checkbox', + 'label' => __( 'Can delete other member accounts?', 'ultimate-member' ), + 'tooltip' => __( 'Allow this role to edit accounts of other members', 'ultimate-member' ), + 'value' => ! empty( $role['_um_can_delete_everyone'] ) ? $role['_um_can_delete_everyone'] : 0, ), array( - 'id' => '_um_can_delete_roles', - 'type' => 'select', - 'label' => __( 'Can delete these user roles only', 'ultimate-member' ), - 'tooltip' => __( 'Which roles that role can edit, choose none to allow role to edit all member roles', 'ultimate-member' ), - 'options' => UM()->roles()->get_roles(), - 'multi' => true, - 'value' => ! empty( $role['_um_can_delete_roles'] ) ? $role['_um_can_delete_roles'] : array(), - 'conditional' => array( '_um_can_delete_everyone', '=', '1' ) + 'id' => '_um_can_delete_roles', + 'type' => 'select', + 'label' => __( 'Can delete these user roles only', 'ultimate-member' ), + 'tooltip' => __( 'Which roles that role can edit, choose none to allow role to edit all member roles', 'ultimate-member' ), + 'options' => UM()->roles()->get_roles(), + 'multi' => true, + 'value' => ! empty( $role['_um_can_delete_roles'] ) ? $role['_um_can_delete_roles'] : array(), + 'conditional' => array( '_um_can_delete_everyone', '=', '1' ) ) ) ) )->render_form(); ?> diff --git a/includes/core/um-actions-account.php b/includes/core/um-actions-account.php index 0017066b..4367a8b1 100644 --- a/includes/core/um-actions-account.php +++ b/includes/core/um-actions-account.php @@ -415,7 +415,7 @@ add_action( 'um_account_page_hidden_fields', 'um_account_page_hidden_fields' ); * Before delete account tab content */ function um_before_account_delete() { - echo wpautop( htmlspecialchars( UM()->options()->get( 'delete_account_text' ) ) ); + printf( __( '%s', 'ultimate-member' ), wpautop( htmlspecialchars( UM()->options()->get( 'delete_account_text' ) ) ) ); } add_action( 'um_before_account_delete', 'um_before_account_delete' ); diff --git a/readme.txt b/readme.txt index e0ae7521..4e071d02 100644 --- a/readme.txt +++ b/readme.txt @@ -43,7 +43,6 @@ Read about all of the plugin's features at [Ultimate Member](https://ultimatemem Ultimate Member has a range of extensions that allow you to extend the power of the plugin. You can purchase all of these extensions at a significant discount with our [All Access Pass](https://ultimatemember.com/pricing/) or you can purchase extensions individually. * [User Locations](https://ultimatemember.com/extensions/user-locations/) - Allow to display users on a map on the member directory page and allow users to add their location via their profile -* [Profile Tabs](https://ultimatemember.com/extensions/profile-tabs/) - Allow users to add custom tabs to profiles * [Unsplash](https://ultimatemember.com/extensions/unsplash/) - Allow users to select a profile cover photo from [Unsplash](https://unsplash.com/) from their profile * [User Bookmarks](https://ultimatemember.com/extensions/user-bookmarks/) - Allow users to bookmark content from your website * [User Photos](https://ultimatemember.com/extensions/user-photos/) - Allow users to upload photos to their profile @@ -146,7 +145,7 @@ The plugin works with popular caching plugins by automatically excluding Ultimat * To learn more about version 2.1 please see this [topic](https://wordpress.org/support/topic/version-2-1-4/) * UM2.1+ is a significant update to the Member Directories' code base from 2.0.x. Please make sure you take a full-site backup with restore point before updating the plugin -= 2.1.5: April 1, 2020 = += 2.1.5: April 2, 2020 = * Enhancements: