redirect.php in Welcart e-Commerce 1.3.16, at functions/redirect.php
| 1 | <?php |
| 2 | function usces_redirect(){ |
| 3 | if( isset($_GET['page']) && $_GET['page'] == 'usces_itemedit' ){ |
| 4 | if ( isset($_POST['wp-preview']) && 'dopreview' == $_POST['wp-preview'] ){ |
| 5 | $action = 'preview'; |
| 6 | }else{ |
| 7 | $action = ''; |
| 8 | } |
| 9 | |
| 10 | switch( $action ){ |
| 11 | case 'preview': |
| 12 | check_admin_referer( 'autosave', 'autosavenonce' ); |
| 13 | |
| 14 | $url = post_preview(); |
| 15 | |
| 16 | wp_redirect($url); |
| 17 | exit(); |
| 18 | break; |
| 19 | |
| 20 | } |
| 21 | } |
| 22 | } |
| 23 | ?> |
| 24 |