Ticket #11471: 11471-simple.diff
File 11471-simple.diff, 763 bytes (added by , 15 years ago) |
---|
-
edit-comments.php
103 103 if ( !empty($_REQUEST['comment_status']) ) 104 104 $redirect_to = add_query_arg('comment_status', $_REQUEST['comment_status'], $redirect_to); 105 105 if ( !empty($_REQUEST['s']) ) 106 $redirect_to = add_query_arg('s', $_REQUEST['s'], $redirect_to);106 $redirect_to = add_query_arg('s', urlencode($_REQUEST['s']), $redirect_to); 107 107 wp_redirect( $redirect_to ); 108 exit; 108 109 } elseif ( isset($_GET['_wp_http_referer']) && ! empty($_GET['_wp_http_referer']) ) { 109 110 wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) ); 110 111 exit;