Skip to content

Commit 0efcd10

Browse files
authored
Merge pull request #3 from angelorocha/dev
Dev
2 parents 3c24c90 + 665f541 commit 0efcd10

7 files changed

+11
-12
lines changed

admin/classes/WPSSAdminFrontend.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ public static function render_template( array $template ): void {
5757
if ( in_array( $template['template'], self::template_whitelist() ) ) {
5858
$file_path = WPSS_URCM_PLUGIN_PATH . "admin/templates/{$template['template']}.php";
5959
$output = __( 'Template not found...', 'wpss-ultimate-user-management' );
60-
if ( file_exists( $file_path ) ):
60+
if ( file_exists( $file_path ) ) {
6161
ob_start();
6262
require $file_path;
6363
$output = ob_get_clean();
64-
endif;
64+
}
6565

6666
echo wp_kses( $output, self::sanitize_output() );
6767
}

admin/classes/WPSSContentAccess.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ public function __construct() {
3838
* @since 1.1.0
3939
*/
4040
public static function instance(): object {
41-
if ( is_null( self::$instance ) ):
41+
if ( is_null( self::$instance ) ) {
4242
self::$instance = new self();
43-
endif;
43+
}
4444

4545
return self::$instance;
4646
}

admin/classes/WPSSUserRolesCapsManager.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ class WPSSUserRolesCapsManager {
5656
* @since 1.0.0
5757
*/
5858
public function __construct() {
59-
if ( empty( $this->global_params ) && is_admin() ):
59+
if ( empty( $this->global_params ) && is_admin() ) {
6060
$this->global_params = [
6161
'ajax_url' => admin_url( 'admin-ajax.php' ),
6262
'nonce' => wp_create_nonce( self::$nonce ),
6363
];
64-
endif;
64+
}
6565

6666
/** Setup plugin admin menu page */
6767
add_action( 'admin_menu', [ $this, 'wpss_user_admin_menu' ] );
@@ -149,7 +149,6 @@ public function wpss_user_admin_menu(): void {
149149
* @since 1.0.0
150150
*/
151151
public function wpss_load_plugin_text_domain(): void {
152-
$lang_path = WPSS_URCM_PLUGIN_PATH . 'lang/';
153152
load_plugin_textdomain( 'wpss-ultimate-user-management', false, 'wpss-ultimate-user-management/lang' );
154153
}
155154

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wpss-ultimate-user-management",
3-
"version": "1.0.0",
3+
"version": "1.1.2",
44
"description": "WordPress user administrator, roles and capabilities management.",
55
"main": "index.js",
66
"bugs": "",

readme.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Contributors: angelorocha
33
Donate link: https://www.paypal.com/donate?hosted_button_id=DRE7DA2LZBA3U
44
Tags: role, capabilities, user, widgets, permissions
55
Requires at least: 6.1
6-
Tested up to: 6.6
6+
Tested up to: 6.7.1
77
Requires PHP: 8.1
8-
Stable tag: 1.1.1
8+
Stable tag: 1.1.2
99
License: GNU General Public License v3 or later
1010
License URI: /licence.txt
1111

wpss-ultimate-user-management.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Plugin Name: WPSS Ultimate User Management
99
* Plugin URI: https://github.com/angelorocha/wpss-ultimate-user-management
1010
* Description: Manage users, roles and capabilities more easily.
11-
* Version: 1.1.1
11+
* Version: 1.1.2
1212
* Requires at least: 6.1
1313
* Requires PHP: 8.1
1414
* Author: Angelo Rocha

0 commit comments

Comments
 (0)