Version Description
- Reintroduced the global action variable $wpmem_a for backward compatibility with certain add-ons, most notably the WP-Members MailChimp extension ( see http://rkt.bz/3b ). Users of this extension should upgrade. This variable had been replaced with the new WP-Members object class introduced in 3.0. However, users of older extensions and those that may have customziations with logic may be using this variable, so rather than force updating and upgrading, it is being added back in.
- Change to the priority of functions hooked to the the_content filter. Lowering the priority should better integrate the plugin with various builder plugins and other processes that currently filter the_content after WP-Members since the content will now be filtered later in the process. This also should improve situations where in the past the on-the-fly texturization shortcode for the WP-Members forms might remain unparsed.
Download this release
Release Info
Developer | cbutlerjr |
Plugin | WP-Members Membership Plugin |
Version | 3.0.4 |
Comparing to | |
See all releases |
Code changes from version 3.0.3 to 3.0.4
- inc/class-wp-members.php +7 -3
- inc/shortcodes.php +2 -2
- readme.txt +7 -2
- wp-members.php +3 -2
inc/class-wp-members.php
CHANGED
@@ -78,11 +78,11 @@ class WP_Members {
|
|
78 |
add_action( 'wp_print_styles', 'wpmem_enqueue_style' ); // load the stylesheet if using the new forms
|
79 |
|
80 |
// Add filters.
|
81 |
-
add_filter( 'the_content', array( $this, 'do_securify' ),
|
82 |
add_filter( 'allow_password_reset', 'wpmem_no_reset' ); // no password reset for non-activated users
|
83 |
add_filter( 'register_form', 'wpmem_wp_register_form' ); // adds fields to the default wp registration
|
84 |
add_filter( 'registration_errors', 'wpmem_wp_reg_validate', 10, 3 ); // native registration validation
|
85 |
-
add_filter( 'comments_open', 'wpmem_securify_comments',
|
86 |
|
87 |
// If registration is moderated, check for activation (blocks backend login by non-activated users).
|
88 |
if ( $this->mod_reg == 1 ) {
|
@@ -162,6 +162,10 @@ class WP_Members {
|
|
162 |
// Get the action being done (if any).
|
163 |
$this->action = ( isset( $_REQUEST['a'] ) ) ? trim( $_REQUEST['a'] ) : '';
|
164 |
|
|
|
|
|
|
|
|
|
165 |
// Get the regchk value (if any).
|
166 |
$this->regchk = $this->get_regchk( $this->action );
|
167 |
}
|
@@ -404,7 +408,7 @@ class WP_Members {
|
|
404 |
// Fix the wptexturize.
|
405 |
remove_filter( 'the_content', 'wpautop' );
|
406 |
remove_filter( 'the_content', 'wptexturize' );
|
407 |
-
add_filter( 'the_content', 'wpmem_texturize',
|
408 |
}
|
409 |
|
410 |
return $content;
|
78 |
add_action( 'wp_print_styles', 'wpmem_enqueue_style' ); // load the stylesheet if using the new forms
|
79 |
|
80 |
// Add filters.
|
81 |
+
add_filter( 'the_content', array( $this, 'do_securify' ), 99 );
|
82 |
add_filter( 'allow_password_reset', 'wpmem_no_reset' ); // no password reset for non-activated users
|
83 |
add_filter( 'register_form', 'wpmem_wp_register_form' ); // adds fields to the default wp registration
|
84 |
add_filter( 'registration_errors', 'wpmem_wp_reg_validate', 10, 3 ); // native registration validation
|
85 |
+
add_filter( 'comments_open', 'wpmem_securify_comments', 99 ); // securifies the comments
|
86 |
|
87 |
// If registration is moderated, check for activation (blocks backend login by non-activated users).
|
88 |
if ( $this->mod_reg == 1 ) {
|
162 |
// Get the action being done (if any).
|
163 |
$this->action = ( isset( $_REQUEST['a'] ) ) ? trim( $_REQUEST['a'] ) : '';
|
164 |
|
165 |
+
// For backward compatibility with processes that check $wpmem_a.
|
166 |
+
global $wpmem_a;
|
167 |
+
$wpmem_a = $this->action;
|
168 |
+
|
169 |
// Get the regchk value (if any).
|
170 |
$this->regchk = $this->get_regchk( $this->action );
|
171 |
}
|
408 |
// Fix the wptexturize.
|
409 |
remove_filter( 'the_content', 'wpautop' );
|
410 |
remove_filter( 'the_content', 'wptexturize' );
|
411 |
+
add_filter( 'the_content', 'wpmem_texturize', 999 );
|
412 |
}
|
413 |
|
414 |
return $content;
|
inc/shortcodes.php
CHANGED
@@ -122,7 +122,7 @@ function wpmem_sc_forms( $atts, $content = null, $tag = 'wpmem_form' ) {
|
|
122 |
// Fixes the wptexturize.
|
123 |
remove_filter( 'the_content', 'wpautop' );
|
124 |
remove_filter( 'the_content', 'wptexturize' );
|
125 |
-
add_filter( 'the_content', 'wpmem_texturize',
|
126 |
}
|
127 |
// @todo - Look into shortcode_unautop().
|
128 |
/** End temporary texturize functions */
|
@@ -307,7 +307,7 @@ function wpmem_shortcode( $attr, $content = null, $tag = 'wp-members' ) {
|
|
307 |
// Fixes the wptexturize.
|
308 |
remove_filter( 'the_content', 'wpautop' );
|
309 |
remove_filter( 'the_content', 'wptexturize' );
|
310 |
-
add_filter( 'the_content', 'wpmem_texturize',
|
311 |
}
|
312 |
return $content;
|
313 |
}
|
122 |
// Fixes the wptexturize.
|
123 |
remove_filter( 'the_content', 'wpautop' );
|
124 |
remove_filter( 'the_content', 'wptexturize' );
|
125 |
+
add_filter( 'the_content', 'wpmem_texturize', 999 );
|
126 |
}
|
127 |
// @todo - Look into shortcode_unautop().
|
128 |
/** End temporary texturize functions */
|
307 |
// Fixes the wptexturize.
|
308 |
remove_filter( 'the_content', 'wpautop' );
|
309 |
remove_filter( 'the_content', 'wptexturize' );
|
310 |
+
add_filter( 'the_content', 'wpmem_texturize', 999 );
|
311 |
}
|
312 |
return $content;
|
313 |
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: cbutlerjr
|
|
3 |
Tags: access, authentication, content, login, member, membership, password, protect, register, registration, restriction, subscriber
|
4 |
Requires at least: 3.1
|
5 |
Tested up to: 4.3
|
6 |
-
Stable tag: 3.0.
|
7 |
License: GPLv2
|
8 |
|
9 |
WP-Members™ is a free membership management framework for WordPress® that restricts content to registered users.
|
@@ -111,7 +111,7 @@ Premium priority support is available at the plugin's site [RocketGeek.com](http
|
|
111 |
|
112 |
== Upgrade Notice ==
|
113 |
|
114 |
-
WP-Members 3.0.
|
115 |
WP-Members 3.0.0 is a major version release. Please be sure you have reviewed the changelog before upgrading. http://rkt.bz/v30
|
116 |
|
117 |
== Screenshots ==
|
@@ -135,6 +135,11 @@ WP-Members 3.0.0 is a major version release. Please be sure you have reviewed th
|
|
135 |
|
136 |
== Changelog ==
|
137 |
|
|
|
|
|
|
|
|
|
|
|
138 |
= 3.0.3 =
|
139 |
|
140 |
* Bug fix recaptcha v2 decode json response on validation.
|
3 |
Tags: access, authentication, content, login, member, membership, password, protect, register, registration, restriction, subscriber
|
4 |
Requires at least: 3.1
|
5 |
Tested up to: 4.3
|
6 |
+
Stable tag: 3.0.4
|
7 |
License: GPLv2
|
8 |
|
9 |
WP-Members™ is a free membership management framework for WordPress® that restricts content to registered users.
|
111 |
|
112 |
== Upgrade Notice ==
|
113 |
|
114 |
+
WP-Members 3.0.4 is a functional improvement release. See the change log for details.
|
115 |
WP-Members 3.0.0 is a major version release. Please be sure you have reviewed the changelog before upgrading. http://rkt.bz/v30
|
116 |
|
117 |
== Screenshots ==
|
135 |
|
136 |
== Changelog ==
|
137 |
|
138 |
+
= 3.0.4 =
|
139 |
+
|
140 |
+
* Reintroduced the global action variable $wpmem_a for backward compatibility with certain add-ons, most notably the WP-Members MailChimp extension ( see http://rkt.bz/3b ). Users of this extension should upgrade. This variable had been replaced with the new WP-Members object class introduced in 3.0. However, users of older extensions and those that may have customziations with logic may be using this variable, so rather than force updating and upgrading, it is being added back in.
|
141 |
+
* Change to the priority of functions hooked to the the_content filter. Lowering the priority should better integrate the plugin with various builder plugins and other processes that currently filter the_content after WP-Members since the content will now be filtered later in the process. This also should improve situations where in the past the on-the-fly texturization shortcode for the WP-Members forms might remain unparsed.
|
142 |
+
|
143 |
= 3.0.3 =
|
144 |
|
145 |
* Bug fix recaptcha v2 decode json response on validation.
|
wp-members.php
CHANGED
@@ -3,9 +3,10 @@
|
|
3 |
Plugin Name: WP-Members
|
4 |
Plugin URI: http://rocketgeek.com
|
5 |
Description: WP access restriction and user registration. For more information on plugin features, refer to <a href="http://rocketgeek.com/plugins/wp-members/users-guide/">the online Users Guide</a>. A <a href="http://rocketgeek.com/plugins/wp-members/quick-start-guide/">Quick Start Guide</a> is also available. WP-Members(tm) is a trademark of butlerblog.com.
|
6 |
-
Version: 3.0.
|
7 |
Author: Chad Butler
|
8 |
Author URI: http://butlerblog.com/
|
|
|
9 |
License: GPLv2
|
10 |
*/
|
11 |
|
@@ -60,7 +61,7 @@ License: GPLv2
|
|
60 |
|
61 |
|
62 |
// Initialize constants.
|
63 |
-
define( 'WPMEM_VERSION', '3.0.
|
64 |
define( 'WPMEM_DEBUG', false );
|
65 |
define( 'WPMEM_DIR', plugin_dir_url ( __FILE__ ) );
|
66 |
define( 'WPMEM_PATH', plugin_dir_path( __FILE__ ) );
|
3 |
Plugin Name: WP-Members
|
4 |
Plugin URI: http://rocketgeek.com
|
5 |
Description: WP access restriction and user registration. For more information on plugin features, refer to <a href="http://rocketgeek.com/plugins/wp-members/users-guide/">the online Users Guide</a>. A <a href="http://rocketgeek.com/plugins/wp-members/quick-start-guide/">Quick Start Guide</a> is also available. WP-Members(tm) is a trademark of butlerblog.com.
|
6 |
+
Version: 3.0.4
|
7 |
Author: Chad Butler
|
8 |
Author URI: http://butlerblog.com/
|
9 |
+
Text Domain: wp-members
|
10 |
License: GPLv2
|
11 |
*/
|
12 |
|
61 |
|
62 |
|
63 |
// Initialize constants.
|
64 |
+
define( 'WPMEM_VERSION', '3.0.4' );
|
65 |
define( 'WPMEM_DEBUG', false );
|
66 |
define( 'WPMEM_DIR', plugin_dir_url ( __FILE__ ) );
|
67 |
define( 'WPMEM_PATH', plugin_dir_path( __FILE__ ) );
|