New User Approve - Version 1.1.1

Version Description

Download this release

Release Info

Developer picklewagon
Plugin Icon 128x128 New User Approve
Version 1.1.1
Comparing to
See all releases

Code changes from version 1.1 to 1.1.1

Files changed (2) hide show
  1. new-user-approve.php +4 -4
  2. readme.txt +1 -1
new-user-approve.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin URI: http://www.picklewagon.com/wordpress/new-user-approve
5
  Description: This plugin allows administrators to approve users once they register. Only approved users will be allowed to access the blog.
6
  Author: Josh Harrison
7
- Version: 1.1
8
  Author URI: http://www.picklewagon.com/
9
  */
10
 
@@ -267,11 +267,11 @@ if (!class_exists('pw_new_user_approve')) {
267
  $class = ($row % 2) ? '' : ' class="alternate"';
268
  $avatar = get_avatar( $user->user_email, 32 );
269
  if ($approve) {
270
- $approve_link = '/wp-admin/users.php?page='.basename(__FILE__).'&user='.$user->ID.'&status=approve';
271
  $approve_link = ( function_exists('wp_nonce_url') ) ? wp_nonce_url($approve_link, 'plugin-name-action_' . get_class($this)) : $approve_link;
272
  }
273
  if ($deny) {
274
- $deny_link = '/wp-admin/users.php?page='.basename(__FILE__).'&user='.$user->ID.'&status=deny';
275
  $deny_link = ( function_exists('wp_nonce_url') ) ? wp_nonce_url($deny_link, 'plugin-name-action_' . get_class($this)) : $deny_link;
276
  }
277
  ?><tr <?php echo $class; ?>>
@@ -345,7 +345,7 @@ if (!class_exists('pw_new_user_approve')) {
345
  $user_email = stripslashes($user->user_email);
346
 
347
  // format the message
348
- $message = sprintf(__('You have been approved to access %s \r\n'), get_settings('blogname'));
349
  $message .= sprintf(__('Username: %s'), $user_login) . "\r\n";
350
  $message .= sprintf(__('Password: %s'), $new_pass) . "\r\n";
351
  $message .= get_settings('siteurl') . "/wp-login.php\r\n";
4
  Plugin URI: http://www.picklewagon.com/wordpress/new-user-approve
5
  Description: This plugin allows administrators to approve users once they register. Only approved users will be allowed to access the blog.
6
  Author: Josh Harrison
7
+ Version: 1.1.1
8
  Author URI: http://www.picklewagon.com/
9
  */
10
 
267
  $class = ($row % 2) ? '' : ' class="alternate"';
268
  $avatar = get_avatar( $user->user_email, 32 );
269
  if ($approve) {
270
+ $approve_link = get_settings('siteurl').'/wp-admin/users.php?page='.basename(__FILE__).'&user='.$user->ID.'&status=approve';
271
  $approve_link = ( function_exists('wp_nonce_url') ) ? wp_nonce_url($approve_link, 'plugin-name-action_' . get_class($this)) : $approve_link;
272
  }
273
  if ($deny) {
274
+ $deny_link = get_settings('siteurl').'/wp-admin/users.php?page='.basename(__FILE__).'&user='.$user->ID.'&status=deny';
275
  $deny_link = ( function_exists('wp_nonce_url') ) ? wp_nonce_url($deny_link, 'plugin-name-action_' . get_class($this)) : $deny_link;
276
  }
277
  ?><tr <?php echo $class; ?>>
345
  $user_email = stripslashes($user->user_email);
346
 
347
  // format the message
348
+ $message = sprintf(__('You have been approved to access %s '."\r\n"), get_settings('blogname'));
349
  $message .= sprintf(__('Username: %s'), $user_login) . "\r\n";
350
  $message .= sprintf(__('Password: %s'), $new_pass) . "\r\n";
351
  $message .= get_settings('siteurl') . "/wp-login.php\r\n";
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.picklewagon.com/wordpress/
4
  Tags: users, registration
5
  Requires at least: 2.5
6
  Tested up to: 2.7
7
- Stable tag: 1.0
8
 
9
  New User Approve is a Wordpress plugin that allows a blog administrator to
10
  approve a user before they are able to access and login to the blog.
4
  Tags: users, registration
5
  Requires at least: 2.5
6
  Tested up to: 2.7
7
+ Stable tag: 1.1.1
8
 
9
  New User Approve is a Wordpress plugin that allows a blog administrator to
10
  approve a user before they are able to access and login to the blog.