Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

need to escape "" #2

Open
wants to merge 1,705 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
1705 commits
Select commit Hold shift + click to select a range
7f297e2
update feature settings to disable in order to use legacy settings
rocketgeek Aug 3, 2021
36b10b5
new default emails reflect default new feature settings
rocketgeek Aug 3, 2021
914d4ba
replace $wpmem->get_text() / wpmem_gettext() with wpmem_get_text()
rocketgeek Aug 3, 2021
012208b
use wpmem_form_field() instead of deprecated functions
rocketgeek Aug 14, 2021
bc8c587
use wpmem_sanitize_class() via api
rocketgeek Aug 14, 2021
58cb0f9
fix bug in cli
rocketgeek Aug 14, 2021
cc66a36
added width property for membership (to match other field classes)
rocketgeek Aug 27, 2021
8afc01e
added params to securify_rest filter
rocketgeek Aug 27, 2021
c4197e8
cleanup
rocketgeek Aug 27, 2021
b9afe70
remove defaults
rocketgeek Aug 27, 2021
0c08310
cleanup
rocketgeek Aug 27, 2021
f12df31
added class to field
rocketgeek Aug 27, 2021
491b3de
added default text if no memberships are created
rocketgeek Aug 27, 2021
5410171
added rocketgeek utility library
rocketgeek Aug 27, 2021
648d61c
use rocketgeek utilities library
rocketgeek Aug 27, 2021
f156ea3
bug fix and api alias updates
rocketgeek Sep 6, 2021
4874bb8
add wpmem_is_reg_form_showing()
rocketgeek Sep 6, 2021
a92f8b1
add invisible captcha (if enabled) to all pages
rocketgeek Sep 6, 2021
ed04c86
cleanup, mostly inline docs w/ some formatting
rocketgeek Oct 6, 2021
698b354
update email api to allow for default values
rocketgeek Oct 6, 2021
0ed8fd8
add products api functions
rocketgeek Oct 6, 2021
b4d244f
fix (temp?) for membership post column width
rocketgeek Oct 6, 2021
5332a6b
tighten up how jquery is loaded
rocketgeek Oct 6, 2021
b33075c
update logout to match wp_logout action with $user_id
rocketgeek Oct 6, 2021
5a9c485
jetpack_mobile_theme_menu is deprecated with no replacement
rocketgeek Oct 6, 2021
cf5db61
update hidden posts from transient to option
rocketgeek Oct 6, 2021
b9fc19b
overhaul widget class and assoc text tags
rocketgeek Oct 6, 2021
a4ee36c
revise message handling for products class
rocketgeek Oct 6, 2021
0e94f03
add wp_editor to product message editor
rocketgeek Oct 6, 2021
40d262d
load user products on wpmem_after_init rather than during class load
rocketgeek Oct 6, 2021
41ed459
cleanup login form builder for wpmem_login_form() function revisions
rocketgeek Oct 6, 2021
e3c9a29
loginfailed is now a default dialog tag
rocketgeek Oct 6, 2021
17036f8
readme updates
rocketgeek Oct 6, 2021
e4ac113
rebuild and rename user export class
rocketgeek Oct 6, 2021
ff2bfcc
allow wpmem_update_option() to return a boolean for success/failure
rocketgeek Oct 6, 2021
65784b6
fixes checking for individual post ids
rocketgeek Oct 7, 2021
ece4a2d
pass original content to wpmem_securify
rocketgeek Oct 7, 2021
77b575c
handle html email sending (if enabled)
rocketgeek Oct 7, 2021
6d707a2
update default css
rocketgeek Oct 9, 2021
129c2fc
clone menus is deprecated
rocketgeek Oct 9, 2021
d26d7c2
form shortcodes function revisions
rocketgeek Oct 9, 2021
340eda5
cleanup
rocketgeek Oct 9, 2021
df2f3f5
prepare for future update: add default custom dialogs for translation
rocketgeek Oct 13, 2021
a0c70d5
move login failed into main dialogs function
rocketgeek Oct 13, 2021
9ccaa74
condense/revise login/reg form display logic
rocketgeek Oct 13, 2021
2b8b63e
get rid of hard p tags and alignment
rocketgeek Oct 13, 2021
ce980d6
condense unnecessary foreach loops
rocketgeek Oct 13, 2021
3f83129
cleanup @todo tags
rocketgeek Oct 13, 2021
194e61a
removed texturize process - no longer used
rocketgeek Oct 23, 2021
0008cb4
public/private functions in email class
rocketgeek Oct 23, 2021
ad11486
move add_new_user function to main user api
rocketgeek Oct 23, 2021
69cba74
add content type to email api
rocketgeek Oct 23, 2021
a5198b4
added regular blocked content view to customizer
rocketgeek Oct 23, 2021
21809ac
public/private functions in email class
rocketgeek Oct 23, 2021
02d216c
remove deprecated texturizing functions
rocketgeek Oct 23, 2021
c7558e0
use moved new user function
rocketgeek Oct 23, 2021
cef5c81
regchk no longer used here as global
rocketgeek Oct 23, 2021
2964c6a
update readme
rocketgeek Oct 23, 2021
9c976f1
fixes checkbox size issues on the add new user admin screen
rocketgeek Dec 3, 2021
df0c9b1
fixes bug in autoexcerpt causing double read more when length is zero
rocketgeek Dec 3, 2021
97c8428
function is obsolete
rocketgeek Dec 3, 2021
b62bb1c
get_reg_row_keys is a function not a variable
rocketgeek Dec 3, 2021
0450318
improve select field type handling and add user available api functions
rocketgeek Dec 3, 2021
0ef2975
fixes a minor error in the screen
rocketgeek Dec 3, 2021
3443375
changing button text (to make it more intuitive)
rocketgeek Dec 3, 2021
74606fc
add action in settings display (can be used by extensions)
rocketgeek Dec 3, 2021
b73ad0d
fixes an issue with select2 that squashes the field when empty
rocketgeek Dec 3, 2021
8d1a8e9
forward/backward compatibility for wpmem_mail_content_type()
rocketgeek Dec 3, 2021
83513aa
clean up and update readme
rocketgeek Dec 3, 2021
9c08a60
fix jquery tabs on user profile
rocketgeek Dec 3, 2021
3fc53c5
user screen count transient 5 minutes (instead of 30 seconds)
rocketgeek Dec 3, 2021
64c159f
updates to user profile membership section
rocketgeek Dec 3, 2021
454bf1b
update license to gpl v3
rocketgeek Dec 3, 2021
13fe973
update utilities library
rocketgeek Dec 4, 2021
2eb8d73
reposition loading of utilities library
rocketgeek Dec 4, 2021
f79d460
debug dialogs
rocketgeek Dec 4, 2021
279a1a0
style adjments for wpmem_msg
rocketgeek Dec 5, 2021
6c8e164
add wpmem_get_display_message() and debug
rocketgeek Dec 5, 2021
ff0533c
update wpmem_sanitize_field() as an alias for rktgk_sanitize_field()
rocketgeek Dec 6, 2021
dfffe11
use wpmem_sanitize_field()
rocketgeek Dec 6, 2021
35c51d3
fix logic for using default login error vs wp native
rocketgeek Dec 6, 2021
d6ee063
updates for swapping default settings
rocketgeek Dec 6, 2021
2ddc0aa
incorrect sanitize function name
rocketgeek Dec 6, 2021
74e888c
improve membership display in user screen
rocketgeek Dec 7, 2021
e4a35f8
added filter for all users screen membership column html
rocketgeek Dec 7, 2021
3108b32
debug if screen loads with no $post (i.e. 404)
rocketgeek Dec 10, 2021
0d7d4df
comment updates
rocketgeek Dec 13, 2021
bc9ea55
additional backward compatibility for dialogs (if legacy key is reque…
rocketgeek Dec 13, 2021
33018aa
code consolidation
rocketgeek Dec 13, 2021
efafd06
fix bug in hidden posts upgrade routine
rocketgeek Dec 14, 2021
b607646
complete integration of registration_errors filter
rocketgeek Dec 14, 2021
fc322a3
one last (hopefully) change, moving confirmation link to general sett…
rocketgeek Dec 14, 2021
9c6c62c
adjustment to array keys based on settings move
rocketgeek Dec 14, 2021
5a1e65b
bug fix (3.4.0.1) to avoid captcha validation being run twice
rocketgeek Dec 24, 2021
d182f10
bug fix (3.4.0.2) to fix error in user export
rocketgeek Dec 24, 2021
8ac45fa
fix bug in wpmem_get_ip()
rocketgeek Dec 27, 2021
4dbd202
api functions to get plugin version and url
rocketgeek Dec 27, 2021
fa0a16e
cleanup
rocketgeek Dec 27, 2021
4437717
check load_textdomain() explicitly
rocketgeek Dec 27, 2021
08f58b6
change "libraries" to "vendor", move external assets to vendor
rocketgeek Dec 27, 2021
c232b38
new tab color
rocketgeek Dec 27, 2021
0c511ba
prepare for 3.4.1
rocketgeek Dec 27, 2021
83792df
cleanup
rocketgeek Dec 27, 2021
6e68dc8
added attachments to email functions
rocketgeek Dec 27, 2021
970c00c
added wpmem_is_user_current() api function
rocketgeek Dec 27, 2021
ed7c9c0
remove use of wpmem_page_pwd_reset(), deprecated as of 3.4.0.
rocketgeek Jan 6, 2022
e8e94fb
fix list table cursor issue to only change on fields tab screen (not …
rocketgeek Jan 6, 2022
c788a6f
fix scalable logic issue with child membership products
rocketgeek Jan 6, 2022
edf2335
cleanup
rocketgeek Jan 6, 2022
63e4ee8
revise membership hierarchy validation
rocketgeek Jan 6, 2022
260d006
change "product" to "membership" and "block" to "restricted"
rocketgeek Jan 6, 2022
629ec62
sanitize membership product screen vars
rocketgeek Jan 6, 2022
e23e819
cleanup
rocketgeek Jan 6, 2022
a22f841
update translation files
rocketgeek Jan 10, 2022
7ee8524
change function name for backwards compatibility in paypal extension
rocketgeek Jan 10, 2022
2942ad2
correct syntax
rocketgeek Jan 10, 2022
5af916e
bug fix release
rocketgeek Jan 10, 2022
5c7bb51
copyright date change
rocketgeek Jan 10, 2022
0349aaf
only apply pwd reset override on frontend (login error)
rocketgeek Jan 10, 2022
eeaf7c0
add index.php
rocketgeek Jan 10, 2022
86cf3e2
add index.php
rocketgeek Jan 10, 2022
c193389
css fix for checkboxes on add new user screen
rocketgeek Jan 11, 2022
540f03d
added wpmem_recaptcha_url filter
rocketgeek Jan 11, 2022
093005d
code consolidation, get rid of wpmem_use_ssl()
rocketgeek Jan 11, 2022
79077fa
only allow pwdreset override on front end
rocketgeek Jan 23, 2022
ec6c23f
fixes undefined $wpmem->reg_form_showing
rocketgeek Jan 23, 2022
5e5c32a
3.4.1.2 updates
rocketgeek Jan 23, 2022
5cd812e
cleanup
rocketgeek Jan 23, 2022
d4e832f
fix to pass memberships to apply_custom_access_message()
rocketgeek Jan 23, 2022
a975582
should explode product if not array
rocketgeek Jan 23, 2022
c7ff8c9
fixes undefined replacement value in loginout function & shortcode
rocketgeek Feb 2, 2022
d1a7268
change load_admin to load on init, reorganize into logical order
rocketgeek Apr 7, 2022
220195c
wpmem_page_forgot_username() is deprecated
rocketgeek Apr 7, 2022
3f7e1dd
utilities library update
rocketgeek Apr 7, 2022
3b189b8
remove echo as this is not currently used
rocketgeek Apr 7, 2022
05d0175
revise replacement for deprecated function
rocketgeek Apr 7, 2022
f8468ef
add default linebreak and fix html formatted notification email
rocketgeek Apr 7, 2022
b461521
improve product restricted message for non-logged in state, add div id
rocketgeek Apr 7, 2022
f292450
wpmem_wp_login_form() set echo to false by default
rocketgeek Apr 7, 2022
2737b25
[wpmem_form wp_login] shortcode improve
rocketgeek Apr 7, 2022
d24c460
fix $user_id validation
rocketgeek Apr 7, 2022
d042a4b
cleanup
rocketgeek Apr 7, 2022
472f9ba
add action as a parameter fo the wpmem_get_action hook
butlerblog Apr 28, 2022
b50e802
load and validate settings in a single action before settings filter
butlerblog Apr 28, 2022
859b07a
load and validate settings in a single action before settings filter
butlerblog Apr 28, 2022
4dde784
set dialog for password reset link to match message used elsewhere (t…
butlerblog Apr 28, 2022
25f74bc
add user_id to email filters
butlerblog Apr 28, 2022
f4bce4f
add id, class, and wrapper attributes to [wpmem_logged_in] shortcode
butlerblog Apr 28, 2022
3ba8d96
add user confirmed field to default export fields (if confirmation li…
butlerblog Apr 28, 2022
b6d85c8
new api functions (and moving some in forms to user api)
butlerblog Apr 28, 2022
24f40f6
cleanup
butlerblog Apr 28, 2022
3f3fdb8
fix validation key param for wpmem_user_set_as_confirmed action
butlerblog Apr 28, 2022
65ebf98
fixes compatibility issues with plugins that use "authenticate" but r…
butlerblog Apr 28, 2022
1c7502c
reorder where settings are loaded
butlerblog Jun 7, 2022
a3b86a5
fixes for password reset
butlerblog Jun 7, 2022
3636403
update to pass user_id in register/update actions
butlerblog Jun 7, 2022
b4daab0
fix in wpmem_is_reg_type() that returned invalid var
butlerblog Jun 7, 2022
3b85f52
change input labels for paypal ext for clarity
butlerblog Jun 7, 2022
f573e40
update uninstall for missed settings
butlerblog Jun 7, 2022
b837806
update inline docs
butlerblog Jun 7, 2022
ea32059
add onboarding
butlerblog Jun 7, 2022
dfa4b07
version 3.4.2 ready for beta
butlerblog Jun 7, 2022
7984268
adds url display to fields shortcode
butlerblog Jun 13, 2022
f400414
add null to check_activated/validated, add filters for each
butlerblog Jun 13, 2022
70736b8
move location of functions in file
butlerblog Jun 13, 2022
cc8cdd9
move onboarding towards compartmentalization
butlerblog Jun 13, 2022
cab00a6
set var for optin, add to options
butlerblog Jun 13, 2022
56e9478
move export object class file to mainspace
butlerblog Jul 8, 2022
9664086
move admin object load back to init
butlerblog Jul 8, 2022
811f497
onboarding updates
butlerblog Jul 8, 2022
78b8aaa
cli fixes
butlerblog Jul 8, 2022
fbb154d
fix undefined variable
butlerblog Jul 8, 2022
a9bc4c0
move export class to load from mainspace rather than admin
butlerblog Jul 8, 2022
dd2f8f8
fix potential issue in [wpmem_field] shortcode if field does not have…
butlerblog Jul 8, 2022
5a04247
admin object needs to load on init for legacy reasons
butlerblog Jul 8, 2022
51e9567
don't load user update on front end (during password reset)
butlerblog Jul 8, 2022
acd5278
cleanup
butlerblog Jul 8, 2022
aa3dabe
fixes for password reset (in case the_content is run more than once)
butlerblog Jul 8, 2022
b0b0301
add [memberships] shortcode for admin notification email
butlerblog Jul 8, 2022
ab5633e
move add options page function
butlerblog Jul 8, 2022
66e401a
move dependency load to after settings are loaded
butlerblog Jul 8, 2022
d232873
further fixes/improvements for password reset (the_content no longer …
butlerblog Jul 8, 2022
f0599bd
fix/improve membership required messaging (show excerpt if logged in)
butlerblog Jul 8, 2022
27f50b5
only load membership features if memberships enabled
butlerblog Jul 8, 2022
f17e42a
release version 3.4.4
butlerblog Jul 8, 2022
9fefbc5
column width adjustments
butlerblog Aug 13, 2022
1619bfc
api updates
butlerblog Aug 13, 2022
7a239a7
add wpmem_login_form_button_rows filter
butlerblog Aug 13, 2022
3ad84de
use new api functions
butlerblog Aug 13, 2022
ad74ad2
use new api functions
butlerblog Aug 13, 2022
5aae201
correct deprecated function
butlerblog Aug 13, 2022
db0d63c
cleanup
butlerblog Aug 13, 2022
060763b
$current_user unnecessary in wpmem_user_has_role()
butlerblog Aug 15, 2022
13d91d9
add wpmem_pwd_reset_email_link
butlerblog Aug 15, 2022
ee5148c
rollback of only loading memberships if enabled (causes compatibility…
butlerblog Aug 15, 2022
11f2de8
return slug if product does not have a title
butlerblog Aug 15, 2022
e464d3a
wpmem_get_membership_name() will always return value
butlerblog Aug 15, 2022
c858ed0
cleanup
butlerblog Aug 15, 2022
025dcd6
comments
butlerblog Sep 2, 2022
b292bbc
add rktgk_build_html_tag() to vendor library (1.1.0)
butlerblog Sep 2, 2022
ecd3f29
add new options and filters for html display of certain fields
butlerblog Sep 2, 2022
d2bdee8
delete utilities to re-add as submodule
butlerblog Sep 15, 2022
ded2bb4
add utilities library as submodule
butlerblog Sep 15, 2022
2464a43
batch update of submodules
butlerblog Sep 15, 2022
c77f66e
batch update of rocketgeek-utilities submodule
butlerblog Sep 15, 2022
01fbf0c
avoid php errors if user misuses the [wpmem_field] shortcode
butlerblog Sep 19, 2022
17e1d43
replace deprecated function
butlerblog Sep 19, 2022
1d68fa2
add index files
butlerblog Sep 19, 2022
033fd9f
beta testing for rc3
butlerblog Sep 19, 2022
0537570
remove bak file
butlerblog Sep 19, 2022
247f9bf
finalize 3.4.5
butlerblog Sep 20, 2022
bc68b2f
coding standards
butlerblog Oct 3, 2022
3b8b4fa
add whitespace to appended message
butlerblog Oct 3, 2022
b08a60a
add login/reg link api functions
butlerblog Oct 3, 2022
34bc1f6
update deprecated functions
butlerblog Oct 3, 2022
0dbc08b
batch update of rocketgeek-utilities submodule
butlerblog Nov 3, 2022
d03047e
adjust new dialogs
butlerblog Nov 26, 2022
df8b52e
new settings api functions
butlerblog Nov 26, 2022
6ffca3b
refine password reset messaging when mod reg and/or confirm link is e…
butlerblog Nov 26, 2022
515df7e
add wpmem_get_user_by_meta_key()
butlerblog Nov 26, 2022
9dc715c
add/refine new membership api functions
butlerblog Nov 26, 2022
0beb6ac
code cleanup
butlerblog Nov 26, 2022
756369a
add "author" attribute support for [wpmem_field]
butlerblog Nov 26, 2022
c1ddf5b
add filter support for [wpmem_profile]
butlerblog Nov 26, 2022
011c71a
fix bug in profile that prevented non-admins from updating custom fields
butlerblog Nov 26, 2022
1d9f6a5
adjust messaging if user validates but still needs to be approved
butlerblog Nov 26, 2022
f88db80
readme updates for 3.4.6
butlerblog Nov 26, 2022
8994af0
batch update of rocketgeek-utilities submodule
butlerblog Jan 22, 2023
30e7611
cleanup
butlerblog Jan 30, 2023
835f999
add membership shortcodes
butlerblog Jan 30, 2023
7ad74de
adding timestamp fieldtype support
butlerblog Jan 30, 2023
73d86ed
adding timestamp fieldtype support
butlerblog Jan 30, 2023
3cd71ad
only check current_screen on admin
butlerblog Jan 30, 2023
c0762b4
move wc settings to subclass, move options out of new feature settings
butlerblog Jan 30, 2023
78f5327
fix user dashboard profile required fields while leaving admin optional
butlerblog Jan 30, 2023
3ee95b7
fields table updates (without wc and profile options yet)
butlerblog Jan 30, 2023
2866eb1
3.4.7 beta release candidate 1
butlerblog Jan 30, 2023
4ca7301
cleanup dev code
rocketgeek Feb 15, 2023
6906094
add check for $current_screen to allow front end ajax triggers
rocketgeek Feb 15, 2023
f459ace
add check for forgot pwd reset
rocketgeek Feb 15, 2023
612c2ea
css fixes
rocketgeek Mar 9, 2023
d3330c0
cleanup of inline comments, typos, and var names
rocketgeek Mar 9, 2023
7a0d9c7
using explicit checks tends to cause problems
rocketgeek Mar 9, 2023
d287884
add wpmem_file_uploaded action hook
rocketgeek Mar 9, 2023
6e7a1a1
batch update of rocketgeek-utilities submodule
butlerblog Mar 14, 2023
9d37a07
batch update of rocketgeek-utilities submodule
butlerblog Mar 22, 2023
380ff8a
update copyright date
butlerblog Mar 28, 2023
d8e5afd
fix dynamically declared object vars for php 8.2 compatibility
butlerblog Mar 28, 2023
e60495a
fix update of new product_restrict setting
butlerblog Mar 28, 2023
8975178
prepare package for 3.4.7 release
butlerblog Mar 28, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
cleanup, mostly inline docs w/ some formatting
rocketgeek committed Oct 6, 2021
commit ed04c86c53e748533c0ad99464ab72f55cceb169
2 changes: 1 addition & 1 deletion includes/admin/tabs/class-wp-members-admin-tab-fields.php
Original file line number Diff line number Diff line change
@@ -87,7 +87,7 @@ public static function build_settings() {

if ( 'delete' == $delete_action ) {

$delete_fields = wpmem_get( 'delete' ); ?>
$delete_fields = wpmem_sanitize_array( wpmem_get( 'delete' ) );?>

<?php if ( empty( $delete_fields ) ) { ?>
<p><?php _e( 'No fields selected for deletion', 'wp-members' ); ?></p>
2 changes: 1 addition & 1 deletion includes/admin/tabs/class-wp-members-admin-tab-options.php
Original file line number Diff line number Diff line change
@@ -203,7 +203,7 @@ static function build_settings() {
<h3><?php _e( 'Other Settings', 'wp-members' ); ?> <a href="https://rocketgeek.com/plugins/wp-members/docs/plugin-settings/options/#other" target="_blank" title="info"><span class="dashicons dashicons-info"></span></a></h3>
<ul>
<?php
/** This filter is defined in class-wp-members.php */
/** This filter is defined in includes/class-wp-members.php */
$dropin_dir = apply_filters( 'wpmem_dropin_dir', $wpmem->dropin_dir );
$rows = array(
array(__('Enable Products', 'wp-members'),'wpmem_settings_products',__('Enables creation of different membership products','wp-members'),'enable_products'),
2 changes: 1 addition & 1 deletion includes/api/api-forms.php
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@
* to the current function documentation.
*
* @since 2.5.1
* @since 3.1.7 Now a wrapper for $wpmem->forms->login_form()
* @since 3.1.7 Now an alias for $wpmem->forms->login_form()
* @since 3.3.0 Added to API.
* @since 3.4.0 Main API function for displaying login form.
*
14 changes: 7 additions & 7 deletions includes/api/api-users.php
Original file line number Diff line number Diff line change
@@ -166,7 +166,7 @@ function wpmem_user_has_meta( $meta, $value = false, $user_id = false ) {
* Checks if a user is activated.
*
* @since 3.1.7
* @since 3.2.3 Now a wrapper for WP_Members_Users::is_user_activated().
* @since 3.2.3 Now an alias for WP_Members_Users::is_user_activated().
*
* @global object $wpmem
* @param int $user_id
@@ -199,7 +199,7 @@ function wpmem_user_data( $user_id = false, $all = false ) {
/**
* Updates a user's role.
*
* This is a wrapper for $wpmem->update_user_role(). It can add a role to a
* This is an alias for $wpmem->update_user_role(). It can add a role to a
* user, change or remove the user's role. If no action is specified it will
* change the role.
*
@@ -319,7 +319,7 @@ function wpmem_set_as_logged_in( $user_id ) {
* @since 2.5.2 Now uses wp_signon().
* @since 2.7.7 Sets cookie using wp_set_auth_cookie().
* @since 3.0.0 Removed wp_set_auth_cookie(), this already happens in wp_signon().
* @since 3.1.7 Now a wrapper for login() in WP_Members_Users Class.
* @since 3.1.7 Now an alias for login() in WP_Members_Users Class.
* @since 3.2.4 Moved to user API (could be deprecated).
*
* @global object $wpmem
@@ -337,7 +337,7 @@ function wpmem_login() {
*
* @since 2.0.0
* @since 3.1.6 Added wp_destroy_current_session(), removed nocache_headers().
* @since 3.1.7 Now a wrapper for logout() in WP_Members_Users Class.
* @since 3.1.7 Now an alias for logout() in WP_Members_Users Class.
* @since 3.2.4 Moved to user API (could be deprecated).
*
* @global object $wpmem
@@ -354,7 +354,7 @@ function wpmem_logout( $redirect_to = false ) {
* Handles user password change (not reset).
*
* @since 2.1.0
* @since 3.1.7 Now a wrapper for password_update() in WP_Members_Users Class.
* @since 3.1.7 Now an alias for password_update() in WP_Members_Users Class.
* @since 3.2.4 Moved to user API (could be deprecated).
*
* @global int $user_ID The WordPress user ID.
@@ -372,7 +372,7 @@ function wpmem_change_password() {
* Resets a forgotten password.
*
* @since 2.1.0
* @since 3.1.7 Now a wrapper for password_update() in WP_Members_Users Class.
* @since 3.1.7 Now an alias for password_update() in WP_Members_Users Class.
* @since 3.2.4 Moved to user API (could be deprecated).
*
* @global object $wpmem The WP-Members object class.
@@ -390,7 +390,7 @@ function wpmem_reset_password() {
*
* @since 3.0.8
* @since 3.1.6 Dependencies now loaded by object.
* @since 3.1.8 Now a wrapper for $wpmem->retrieve_username() in WP_Members_Users Class.
* @since 3.1.8 Now an alias for $wpmem->retrieve_username() in WP_Members_Users Class.
* @since 3.2.4 Moved to user API (could be deprecated).
*
* @global object $wpmem The WP-Members object class.
10 changes: 5 additions & 5 deletions includes/api/api-utilities.php
Original file line number Diff line number Diff line change
@@ -22,10 +22,10 @@
*
* This is the primary function that picks up where wpmem() leaves off.
* Determines whether content is shown or hidden for both post and pages.
* Since 3.0, this function is a wrapper for $wpmem->do_securify().
* Since 3.0, this function is an alias for $wpmem->do_securify().
*
* @since 2.0.0
* @since 3.0.0 Now a wrapper for $wpmem->do_securify().
* @since 3.0.0 Now an alias for $wpmem->do_securify().
* @since 3.2.4 Moved to utility API (could be deprecated).
*
* @global object $wpmem The WP-Members object class.
@@ -43,7 +43,7 @@ function wpmem_securify( $content = null ) {
* Sets an array of user meta fields to be excluded from update/insert.
*
* @since 2.9.3
* @since Unknown Now a wrapper for get_excluded_fields().
* @since Unknown Now an alias for get_excluded_fields().
* @since 3.3.9 excluded_fields() moved to forms object class.
*
* @param string $tag A tag so we know where the function is being used.
@@ -112,7 +112,7 @@ function wpmem_get_sub_str( $needle, $haystack, $position = 'after', $keep_needl
* Creates an excerpt on the fly if there is no 'more' tag.
*
* @since 2.6
* @since 3.2.3 Now a wrapper for WP_Members::do_excerpt().
* @since 3.2.3 Now an alias for WP_Members::do_excerpt().
*
* @global object $wpmem The WP_Members object.
*
@@ -133,7 +133,7 @@ function wpmem_do_excerpt( $content ) {
* Currently only used for the login form to remove the <br> tag that WP puts in after the "Remember Me".
*
* @since 2.6.4
* @since 3.2.3 Now a wrapper for WP_Members::texturize().
* @since 3.2.3 Now an alias for WP_Members::texturize().
*
* @todo Possibly deprecate or severely alter this process as its need may be obsolete.
*
4 changes: 1 addition & 3 deletions includes/api/api.php
Original file line number Diff line number Diff line change
@@ -478,9 +478,7 @@ function wpmem_is_reg_type( $type ) {
/**
* Displays the post restricted message.
*
* @todo Evaluate - this doesn't seem to be used yet.
*
* @since 3.3.5
* @since 3.4.0
*
* @return string
*/
2 changes: 1 addition & 1 deletion includes/class-wp-members-pwd-reset.php
Original file line number Diff line number Diff line change
@@ -290,7 +290,7 @@ function reset_password_form( $args ) {
/**
* Sets and gets the password reset key.
*
* This function is a wrapper for the WP function get_password_reset_key().
* This function is an alias for the WP function get_password_reset_key().
*
* @since 3.3.8
*
4 changes: 2 additions & 2 deletions includes/class-wp-members-widget.php
Original file line number Diff line number Diff line change
@@ -34,14 +34,14 @@ function __construct() {
*/
function form( $instance ) {

/* Default widget settings. */
// Default widget settings.
$defaults = array(
'title' => __( 'Login Status', 'wp-members' ),
'redirect_to' => '',
);
$instance = wp_parse_args( ( array ) $instance, $defaults );

/* Title input */ ?>
// Title input. ?>
<p>
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'wp-members' ); ?></label>
<input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" style="width:95%;" />
3 changes: 2 additions & 1 deletion includes/class-wp-members.php
Original file line number Diff line number Diff line change
@@ -1430,6 +1430,7 @@ public function loginout_script() {
*/
public function do_loginout_script() {
global $wpmem;
/** This filter is defined in /includes/api/api.php */
$logout = apply_filters( 'wpmem_logout_link', add_query_arg( 'a', 'logout' ) );
?><script type="text/javascript">
jQuery('.wpmem_loginout').html('<a class="login_button" href="<?php echo esc_url( $logout ); ?>"><?php echo $this->get_text( 'menu_logout' ); ?></a>');
@@ -1782,7 +1783,7 @@ function loginout_args( $args = array() ) {
$redirect = ( is_user_logged_in() ) ? $args['logout_redirect_to'] : $args['login_redirect_to'];
$text = ( is_user_logged_in() ) ? $args['logout_text'] : $args['login_text'];
if ( is_user_logged_in() ) {
/** This filter is defined in /inc/dialogs.php */
/** This filter is defined in /includes/api/api.php */
$link = apply_filters( 'wpmem_logout_link', add_query_arg( 'a', 'logout' ) );
} else {
$link = wpmem_login_url( $redirect );
10 changes: 5 additions & 5 deletions includes/deprecated.php
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ function wpmem_inc_status() {

global $user_login, $wpmem;

/** This filter is documented in wp-members/inc/dialogs.php */
/** This filter is defined in /includes/api/api.php */
$logout = apply_filters( 'wpmem_logout_link', $url . '/?a=logout' );

$status = '<p>' . sprintf( wpmem_get_text( 'sb_login_status' ), $user_login )
@@ -233,7 +233,7 @@ function wpmem_a_deactivate_user( $user_id ) {
* Loads the form for changing password.
*
* @since 2.0.0
* @since 3.2.0 Now a wrapper for $wpmem->forms->do_changepassword_form()
* @since 3.2.0 Now an alias for $wpmem->forms->do_changepassword_form()
* @deprecated 3.3.0 Use wpmem_change_password_form() instead.
*
* @global object $wpmem The WP_Members object.
@@ -253,7 +253,7 @@ function wpmem_inc_changepassword() {
* Loads the form for resetting password.
*
* @since 2.1.0
* @since 3.2.0 Now a wrapper for $wpmem->forms->do_resetpassword_form()
* @since 3.2.0 Now an alias for $wpmem->forms->do_resetpassword_form()
* @deprecated 3.3.0 Use wpmem_reset_password_form() instead.
*
* @global object $wpmem The WP_Members object.
@@ -426,7 +426,7 @@ function wpmem_get_captcha_err( $wpmem_captcha_err ) {
*
* @since 1.8
* @since 3.1.4 Global $wpmem_regchk no longer needed.
* @since 3.2.0 Now a wrapper for $wpmem->forms->do_login_form().
* @since 3.2.0 Now an alias for $wpmem->forms->do_login_form().
* @deprecated 3.3.0 Use wpmem_login_form() instead.
*
* @global object $post The WordPress Post object.
@@ -450,7 +450,7 @@ function wpmem_inc_login( $page = "page", $redirect_to = null, $show = 'show' )
* Outputs the form for new user registration and existing user edits.
*
* @since 2.5.1
* @since 3.1.7 Now a wrapper for $wpmem->forms->register_form()
* @since 3.1.7 Now an alias for $wpmem->forms->register_form()
* @since 3.2.0 Preparing for deprecation, use wpmem_register_form() instead.
* @deprecated 3.3.0 Use wpmem_register_form() instead.
*
2 changes: 1 addition & 1 deletion wp-members.php
Original file line number Diff line number Diff line change
@@ -128,7 +128,7 @@ function wpmem_init() {
function wpmem_admin_options() {
global $wpmem;
if ( ! is_multisite() || ( is_multisite() && current_user_can( 'edit_theme_options' ) ) ) {
$plugin_page = add_options_page ( 'WP-Members', 'WP-Members', 'manage_options', 'wpmem-settings', 'wpmem_admin' );
$plugin_page = add_options_page( 'WP-Members', 'WP-Members', 'manage_options', 'wpmem-settings', 'wpmem_admin' );
}
}