WordPress.org

Plugin Directory

Changeset 605083


Ignore:
Timestamp:
09/28/12 08:29:25 (19 months ago)
Author:
picklewagon
Message:

honor the redirect if there is one set when registering

Location:
new-user-approve/branches/1.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • new-user-approve/branches/1.4/new-user-approve.php

    r605064 r605083  
    281281                 
    282282                $subject = sprintf( __('[%s] User Approval', $this->plugin_id ), get_option( 'blogname' ) ); 
    283                 $subject = apply_filter( 'new_user_approve_request_approval_subject', $subject ); 
     283                $subject = apply_filters( 'new_user_approve_request_approval_subject', $subject ); 
    284284 
    285285                // send the mail 
     
    366366     */ 
    367367    public function show_user_pending_message($errors) { 
     368        if ( !empty( $_POST['redirect_to'] ) ) { 
     369            // if a redirect_to is set, honor it 
     370            wp_safe_redirect( $_POST['redirect_to'] ); 
     371            exit(); 
     372        } 
     373         
    368374        // if there is an error already, let it do it's thing 
    369375        if ( $errors->get_error_code() ) 
    370376            return $errors; 
    371  
     377         
    372378        $message  = sprintf(__('An email has been sent to the site administrator. The administrator will review the information that has been submitted and either approve or deny your request.', $this->plugin_id)); 
    373379        $message .= sprintf(__('You will receive an email with instructions on what you will need to do next. Thanks for your patience.', $this->plugin_id)); 
  • new-user-approve/branches/1.4/readme.txt

    r605064 r605083  
    5555= 1.4 = 
    5656* add filters 
     57* honor the redirect if there is one set when registering 
    5758 
    5859= 1.3.5 = 
Note: See TracChangeset for help on using the changeset viewer.