Version Description
If upgrading from a version prior to 2.0.0, please note that the plugin now requires PHP 5.3.0 or later.
Download this release
Release Info
Developer | caseproof |
Plugin | Members |
Version | 3.0.3 |
Comparing to | |
See all releases |
Code changes from version 3.0.2 to 3.0.3
- admin/class-role-new.php +1 -1
- admin/functions-settings.php +1 -3
- admin/views/class-view-addons.php +1 -1
- admin/views/class-view-donate.php +0 -75
- changelog.md +11 -0
- members.php +2 -2
- readme.txt +1 -1
admin/class-role-new.php
CHANGED
@@ -94,9 +94,9 @@ final class Role_New {
|
|
94 |
|
95 |
// If the role manager is active.
|
96 |
if ( members_role_manager_enabled() ) {
|
97 |
-
add_action( 'admin_menu', array( $this, 'add_admin_page' ) );
|
98 |
add_action( 'admin_menu', array( $this, 'add_submenu_admin_page' ), 20 );
|
99 |
}
|
|
|
100 |
}
|
101 |
|
102 |
/**
|
94 |
|
95 |
// If the role manager is active.
|
96 |
if ( members_role_manager_enabled() ) {
|
|
|
97 |
add_action( 'admin_menu', array( $this, 'add_submenu_admin_page' ), 20 );
|
98 |
}
|
99 |
+
add_action( 'admin_menu', array( $this, 'add_admin_page' ) );
|
100 |
}
|
101 |
|
102 |
/**
|
admin/functions-settings.php
CHANGED
@@ -58,10 +58,8 @@ function members_register_default_settings_views( $manager ) {
|
|
58 |
* @return bool
|
59 |
*/
|
60 |
function members_is_settings_page() {
|
61 |
-
|
62 |
$screen = get_current_screen();
|
63 |
-
|
64 |
-
return is_object( $screen ) && 'members_page_members-settings' === $screen->id;
|
65 |
}
|
66 |
|
67 |
/**
|
58 |
* @return bool
|
59 |
*/
|
60 |
function members_is_settings_page() {
|
|
|
61 |
$screen = get_current_screen();
|
62 |
+
return is_object( $screen ) && ( 'members_page_members-settings' === $screen->id || 'admin_page_members-settings' === $screen->id );
|
|
|
63 |
}
|
64 |
|
65 |
/**
|
admin/views/class-view-addons.php
CHANGED
@@ -123,7 +123,7 @@ class View_Addons extends View {
|
|
123 |
<?php if ( file_exists( members_plugin()->dir . "img/{$addon->name}.svg" ) ) : ?>
|
124 |
|
125 |
<span class="plugin-icon members-svg-link">
|
126 |
-
<?php
|
127 |
</span>
|
128 |
|
129 |
<?php elseif ( $addon->icon_url ) : ?>
|
123 |
<?php if ( file_exists( members_plugin()->dir . "img/{$addon->name}.svg" ) ) : ?>
|
124 |
|
125 |
<span class="plugin-icon members-svg-link">
|
126 |
+
<?php echo file_get_contents( members_plugin()->dir . "img/{$addon->name}.svg" ); ?>
|
127 |
</span>
|
128 |
|
129 |
<?php elseif ( $addon->icon_url ) : ?>
|
admin/views/class-view-donate.php
DELETED
@@ -1,75 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Handles the donate settings view.
|
4 |
-
*
|
5 |
-
* @package Members
|
6 |
-
* @subpackage Admin
|
7 |
-
* @author Justin Tadlock <justintadlock@gmail.com>
|
8 |
-
* @copyright Copyright (c) 2009 - 2018, Justin Tadlock
|
9 |
-
* @link https://themehybrid.com/plugins/members
|
10 |
-
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
-
*/
|
12 |
-
|
13 |
-
namespace Members\Admin;
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Sets up and handles the donate settings view.
|
17 |
-
*
|
18 |
-
* @since 2.2.0
|
19 |
-
* @access public
|
20 |
-
*/
|
21 |
-
class View_Donate extends View {
|
22 |
-
|
23 |
-
/**
|
24 |
-
* Enqueues scripts/styles.
|
25 |
-
*
|
26 |
-
* @since 2.2.0
|
27 |
-
* @access public
|
28 |
-
* @return void
|
29 |
-
*/
|
30 |
-
public function enqueue() {
|
31 |
-
wp_enqueue_style( 'members-admin' );
|
32 |
-
}
|
33 |
-
|
34 |
-
/**
|
35 |
-
* Renders the settings page.
|
36 |
-
*
|
37 |
-
* @since 2.2.0
|
38 |
-
* @access public
|
39 |
-
* @return void
|
40 |
-
*/
|
41 |
-
public function template() { ?>
|
42 |
-
|
43 |
-
<div class="widefat">
|
44 |
-
|
45 |
-
<div class="welcome-panel">
|
46 |
-
|
47 |
-
<div class="welcome-panel-content">
|
48 |
-
|
49 |
-
<h2>
|
50 |
-
<?php esc_html_e( 'Donate Toward Future Development', 'members' ); ?>
|
51 |
-
</h2>
|
52 |
-
|
53 |
-
<p class="about-description">
|
54 |
-
<?php esc_html_e( 'The Members plugin needs funding to cover development costs toward version 3.0.', 'members' ); ?>
|
55 |
-
</p>
|
56 |
-
|
57 |
-
<p class="members-short-p">
|
58 |
-
<?php esc_html_e( "Members itself will always remain free as long as I'm able to work on it. However, it is easily my largest and most complex plugin. A major update takes 100s of hours of development. If every user would donate just $1, it would fund fulltime development of this plugin for at least 3 years. Of course, it's not a reality that everyone is able donate. Pitching in any amount will help.", 'members' ); ?>
|
59 |
-
</p>
|
60 |
-
|
61 |
-
<p>
|
62 |
-
<a target="_blank" class="button button-primary button-hero" href="<?php echo esc_url( 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=E9D2YGZFM8QT4&source=url' ); ?>"><?php esc_html_e( 'Donate Via PayPal', 'members' ); ?></a>
|
63 |
-
</p>
|
64 |
-
<p>
|
65 |
-
<a target="_blank" href="https://themehybrid.com/plugins/members#donate"><?php esc_html_e( 'Learn More', 'members' ); ?></a>
|
66 |
-
</p>
|
67 |
-
|
68 |
-
</div><!-- .plugin-card-top -->
|
69 |
-
|
70 |
-
</div><!-- .plugin-card -->
|
71 |
-
|
72 |
-
</div>
|
73 |
-
|
74 |
-
<?php }
|
75 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
changelog.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1 |
# Change Log
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
## [3.0.2] - 2020-04-09
|
4 |
|
5 |
### Fixed
|
1 |
# Change Log
|
2 |
|
3 |
+
## [3.0.3] - 2020-04-15
|
4 |
+
|
5 |
+
### Fixed
|
6 |
+
|
7 |
+
- PHP warnings being thrown
|
8 |
+
- Make sure admin menu is always accessible
|
9 |
+
|
10 |
+
### Changed
|
11 |
+
|
12 |
+
- Display icons using file_get_contents() instead of include() to prevent executing them as PHP
|
13 |
+
|
14 |
## [3.0.2] - 2020-04-09
|
15 |
|
16 |
### Fixed
|
members.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Members
|
4 |
* Plugin URI: https://memberpress.com/plugins/members
|
5 |
* Description: A user and role management plugin that puts you in full control of your site's permissions. This plugin allows you to edit your roles and their capabilities, clone existing roles, assign multiple roles per user, block post content, or even make your site completely private.
|
6 |
-
* Version: 3.0.
|
7 |
* Author: MemberPress
|
8 |
* Author URI: https://memberpress.com
|
9 |
* Text Domain: members
|
@@ -442,7 +442,7 @@ final class Members_Plugin {
|
|
442 |
}
|
443 |
|
444 |
public function block_editor_assets() {
|
445 |
-
$active_addons = get_option( 'members_active_addons' );
|
446 |
if ( ! in_array( 'members-block-permissions', $active_addons ) ) {
|
447 |
wp_enqueue_script( 'block-editor-mp-upsell', plugin_dir_url( __FILE__ ) . '/addons/members-block-permissions/public/js/upsell.js' , array(
|
448 |
'wp-compose',
|
3 |
* Plugin Name: Members
|
4 |
* Plugin URI: https://memberpress.com/plugins/members
|
5 |
* Description: A user and role management plugin that puts you in full control of your site's permissions. This plugin allows you to edit your roles and their capabilities, clone existing roles, assign multiple roles per user, block post content, or even make your site completely private.
|
6 |
+
* Version: 3.0.3
|
7 |
* Author: MemberPress
|
8 |
* Author URI: https://memberpress.com
|
9 |
* Text Domain: members
|
442 |
}
|
443 |
|
444 |
public function block_editor_assets() {
|
445 |
+
$active_addons = get_option( 'members_active_addons', array() );
|
446 |
if ( ! in_array( 'members-block-permissions', $active_addons ) ) {
|
447 |
wp_enqueue_script( 'block-editor-mp-upsell', plugin_dir_url( __FILE__ ) . '/addons/members-block-permissions/public/js/upsell.js' , array(
|
448 |
'wp-compose',
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Tags: members, users, roles, capabilities, editor, security, access, permission
|
|
6 |
Requires at least: 4.7
|
7 |
Tested up to: 5.4
|
8 |
Requires PHP: 5.6
|
9 |
-
Stable tag: 3.0.
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
6 |
Requires at least: 4.7
|
7 |
Tested up to: 5.4
|
8 |
Requires PHP: 5.6
|
9 |
+
Stable tag: 3.0.3
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|