Version Description
- Fixed use of wp_signon() for ssl.
- Fixed [wpmem_msurl] email shortcode.
- Fixed admin js and css load (removed unnecessary slash).
- Fixed autoexcerpt to use setting from object and not wpmemembers_autoex option.
- Added filter to remove comments array if content is blocked.
Download this release
Release Info
Developer | cbutlerjr |
Plugin | WP-Members Membership Plugin |
Version | 3.0.1 |
Comparing to | |
See all releases |
Code changes from version 3.0.0 to 3.0.1
- admin/admin.php +2 -2
- inc/core.php +17 -1
- inc/email.php +1 -1
- inc/utilities.php +3 -1
- readme.txt +13 -2
- wp-members.php +2 -2
admin/admin.php
CHANGED
@@ -85,8 +85,8 @@ function wpmem_admin_plugin_links( $links, $file ) {
|
|
85 |
*/
|
86 |
function wpmem_load_admin_js() {
|
87 |
// Queue up admin ajax and styles.
|
88 |
-
wp_enqueue_script( 'wpmem-admin-js', WPMEM_DIR . '
|
89 |
-
wp_enqueue_style ( 'wpmem-admin-css', WPMEM_DIR . '
|
90 |
}
|
91 |
|
92 |
|
85 |
*/
|
86 |
function wpmem_load_admin_js() {
|
87 |
// Queue up admin ajax and styles.
|
88 |
+
wp_enqueue_script( 'wpmem-admin-js', WPMEM_DIR . 'js/admin.js', '', WPMEM_VERSION );
|
89 |
+
wp_enqueue_style ( 'wpmem-admin-css', WPMEM_DIR . 'css/admin.css', '', WPMEM_VERSION );
|
90 |
}
|
91 |
|
92 |
|
inc/core.php
CHANGED
@@ -138,7 +138,7 @@ function wpmem_login() {
|
|
138 |
$creds['remember'] = $rememberme;
|
139 |
|
140 |
// Log in the user and get the user object.
|
141 |
-
$user = wp_signon( $creds,
|
142 |
|
143 |
// If no error, user is a valid signon. continue.
|
144 |
if ( ! is_wp_error( $user ) ) {
|
@@ -531,8 +531,24 @@ function wpmem_securify_comments( $open ) {
|
|
531 |
* @param bool $open Whether the current post is open for comments.
|
532 |
*/
|
533 |
$open = apply_filters( 'wpmem_securify_comments', $open );
|
|
|
|
|
|
|
|
|
534 |
|
535 |
return $open;
|
536 |
}
|
537 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
538 |
/** End of File **/
|
138 |
$creds['remember'] = $rememberme;
|
139 |
|
140 |
// Log in the user and get the user object.
|
141 |
+
$user = wp_signon( $creds, is_ssl() );
|
142 |
|
143 |
// If no error, user is a valid signon. continue.
|
144 |
if ( ! is_wp_error( $user ) ) {
|
531 |
* @param bool $open Whether the current post is open for comments.
|
532 |
*/
|
533 |
$open = apply_filters( 'wpmem_securify_comments', $open );
|
534 |
+
|
535 |
+
if ( ! $open ) {
|
536 |
+
add_filter( 'comments_array' , 'wpmem_securify_comments_array' , 10, 2 );
|
537 |
+
}
|
538 |
|
539 |
return $open;
|
540 |
}
|
541 |
|
542 |
+
/**
|
543 |
+
* Empties the comments array if content is blocked.
|
544 |
+
*
|
545 |
+
* @since 3.0.1
|
546 |
+
*
|
547 |
+
* @return array $comments The comments array.
|
548 |
+
*/
|
549 |
+
function wpmem_securify_comments_array( $comments , $post_id ) {
|
550 |
+
$comments = ( ! is_user_logged_in() && wpmem_block() ) ? array() : $comments;
|
551 |
+
return $comments;
|
552 |
+
}
|
553 |
+
|
554 |
/** End of File **/
|
inc/email.php
CHANGED
@@ -83,7 +83,7 @@ function wpmem_inc_regemail( $user_id, $password, $toggle, $wpmem_fields = null,
|
|
83 |
$arr['blogname'] = wp_specialchars_decode( get_option ( 'blogname' ), ENT_QUOTES );
|
84 |
$arr['exp_type'] = ( $wpmem->use_exp == 1 ) ? get_user_meta( $user_id, 'exp_type', true ) : '';
|
85 |
$arr['exp_date'] = ( $wpmem->use_exp == 1 ) ? get_user_meta( $user_id, 'expires', true ) : '';
|
86 |
-
$arr['wpmem_msurl'] =
|
87 |
$arr['reg_link'] = esc_url( get_user_meta( $user_id, 'wpmem_reg_url', true ) );
|
88 |
$arr['do_shortcodes'] = true;
|
89 |
$arr['add_footer'] = true;
|
83 |
$arr['blogname'] = wp_specialchars_decode( get_option ( 'blogname' ), ENT_QUOTES );
|
84 |
$arr['exp_type'] = ( $wpmem->use_exp == 1 ) ? get_user_meta( $user_id, 'exp_type', true ) : '';
|
85 |
$arr['exp_date'] = ( $wpmem->use_exp == 1 ) ? get_user_meta( $user_id, 'expires', true ) : '';
|
86 |
+
$arr['wpmem_msurl'] = $wpmem->user_pages['profile'];
|
87 |
$arr['reg_link'] = esc_url( get_user_meta( $user_id, 'wpmem_reg_url', true ) );
|
88 |
$arr['do_shortcodes'] = true;
|
89 |
$arr['add_footer'] = true;
|
inc/utilities.php
CHANGED
@@ -215,7 +215,9 @@ if ( ! function_exists( 'wpmem_do_excerpt' ) ):
|
|
215 |
*/
|
216 |
function wpmem_do_excerpt( $content ) {
|
217 |
|
218 |
-
$
|
|
|
|
|
219 |
|
220 |
// Is there already a 'more' link in the content?
|
221 |
$has_more_link = ( stristr( $content, 'class="more-link"' ) ) ? true : false;
|
215 |
*/
|
216 |
function wpmem_do_excerpt( $content ) {
|
217 |
|
218 |
+
global $wpmem;
|
219 |
+
|
220 |
+
$arr = $wpmem->autoex; // get_option( 'wpmembers_autoex' );
|
221 |
|
222 |
// Is there already a 'more' link in the content?
|
223 |
$has_more_link = ( stristr( $content, 'class="more-link"' ) ) ? true : false;
|
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.2.2
|
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,6 +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.0 is a major version release. Please be sure you have reviewed the changelog before upgrading. http://rkt.bz/v30
|
115 |
|
116 |
== Screenshots ==
|
@@ -127,11 +128,21 @@ WP-Members 3.0.0 is a major version release. Please be sure you have reviewed th
|
|
127 |
|
128 |
6. Posts > All Posts - The plugin adds a column to the list of posts and pages to display if a post or page is unblocked or blocked (the opposite of whatver you have set for the plugin's default in the options tab).
|
129 |
|
130 |
-
7. Posts > Edit Post - The plugin adds a meta box to the post/page editor allowing you to set an individual post to be blocked or unblocked (the opposite of
|
|
|
|
|
131 |
|
132 |
|
133 |
== Changelog ==
|
134 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
= 3.0.0 =
|
136 |
|
137 |
This release makes significant changes to the plugin's main options in the way they are stored. While care has been taken to make sure that you can roll back to a previous version, you may need to resave settings in the plugin's main options tab when attempting to roll back. It is advised that you test this update prior upgrading an existing install on a production site.
|
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.2.2
|
6 |
+
Stable tag: 3.0.1
|
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.1 is bug fix release. See the change log for detail.
|
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 ==
|
128 |
|
129 |
6. Posts > All Posts - The plugin adds a column to the list of posts and pages to display if a post or page is unblocked or blocked (the opposite of whatver you have set for the plugin's default in the options tab).
|
130 |
|
131 |
+
7. Posts > Edit Post - The plugin adds a meta box to the post/page editor allowing you to set an individual post to be blocked or unblocked (the opposite of whatever your default setting is).
|
132 |
+
|
133 |
+
8. Forms are responsive with most included stylesheets.
|
134 |
|
135 |
|
136 |
== Changelog ==
|
137 |
|
138 |
+
= 3.0.1 =
|
139 |
+
|
140 |
+
* Fixed use of wp_signon() for ssl.
|
141 |
+
* Fixed [wpmem_msurl] email shortcode.
|
142 |
+
* Fixed admin js and css load (removed unnecessary slash).
|
143 |
+
* Fixed autoexcerpt to use setting from object and not wpmemembers_autoex option.
|
144 |
+
* Added filter to remove comments array if content is blocked.
|
145 |
+
|
146 |
= 3.0.0 =
|
147 |
|
148 |
This release makes significant changes to the plugin's main options in the way they are stored. While care has been taken to make sure that you can roll back to a previous version, you may need to resave settings in the plugin's main options tab when attempting to roll back. It is advised that you test this update prior upgrading an existing install on a production site.
|
wp-members.php
CHANGED
@@ -3,7 +3,7 @@
|
|
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
|
@@ -60,7 +60,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.1
|
7 |
Author: Chad Butler
|
8 |
Author URI: http://butlerblog.com/
|
9 |
License: GPLv2
|
60 |
|
61 |
|
62 |
// Initialize constants.
|
63 |
+
define( 'WPMEM_VERSION', '3.0.1' );
|
64 |
define( 'WPMEM_DEBUG', false );
|
65 |
define( 'WPMEM_DIR', plugin_dir_url ( __FILE__ ) );
|
66 |
define( 'WPMEM_PATH', plugin_dir_path( __FILE__ ) );
|