| 29 | | if ( !empty( $_POST ) ) { |
| 30 | | Session::add_to_set( 'last_form_data', $_POST, 'post' ); |
| 31 | | Session::error( _t('We saved the last form you posted. Log back in to continue its submission.'), 'expired_form_submission' ); |
| 32 | | } |
| 33 | | if ( !empty( $_GET ) ) { |
| 34 | | Session::add_to_set( 'last_form_data', $_GET, 'get' ); |
| 35 | | Session::error( _t('We saved the last form you posted. Log back in to continue its submission.'), 'expired_form_submission' ); |
| 36 | | } |
| 37 | | Utils::redirect( URL::get( 'user', array( 'page' => 'login' ) ) ); |
| | 29 | if ( !empty( $_POST ) ) { |
| | 30 | Session::add_to_set( 'last_form_data', $_POST, 'post' ); |
| | 31 | Session::error( _t('We saved the last form you posted. Log back in to continue its submission.'), 'expired_form_submission' ); |
| | 32 | } |
| | 33 | if ( !empty( $_GET ) ) { |
| | 34 | Session::add_to_set( 'last_form_data', $_GET, 'get' ); |
| | 35 | Session::error( _t('We saved the last form you posted. Log back in to continue its submission.'), 'expired_form_submission' ); |
| | 36 | } |
| | 37 | Utils::redirect( URL::get( 'user', array( 'page' => 'login' ) ) ); |