Changeset 4655
- Timestamp:
- 12/25/2012 08:00:36 AM (12 years ago)
- Location:
- trunk/includes
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/common/functions.php
r4588 r4655 228 228 229 229 /** Misc **********************************************************************/ 230 231 /** 232 * Return the unescaped redirect_to request value 233 * 234 * @bbPress (r4655) 235 * 236 * @return string The URL to redirect to, if set 237 */ 238 function bbp_get_redirect_to() { 239 $retval = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : ''; 240 241 return apply_filters( 'bbp_get_redirect_to', $retval ); 242 } 230 243 231 244 /** -
trunk/includes/common/template-tags.php
r4622 r4655 1114 1114 * Output hidden request URI field for user forms. 1115 1115 * 1116 * The referer link is the current Request URI from the server super global. T he1117 * input name is 'redirect_to', in case you wanted to check manually.1116 * The referer link is the current Request URI from the server super global. To 1117 * check the field manually, use bbp_get_redirect_to(). 1118 1118 * 1119 1119 * @since bbPress (r2815) -
trunk/includes/forums/functions.php
r4654 r4655 297 297 298 298 // Redirect to 299 $redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';299 $redirect_to = bbp_get_redirect_to(); 300 300 301 301 // Get the forum URL … … 549 549 550 550 // Redirect to 551 $redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';551 $redirect_to = bbp_get_redirect_to(); 552 552 553 553 // View all? -
trunk/includes/replies/functions.php
r4561 r4655 319 319 320 320 // Redirect to 321 $redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';321 $redirect_to = bbp_get_redirect_to(); 322 322 323 323 // Get the reply URL … … 604 604 605 605 // Redirect to 606 $redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';606 $redirect_to = bbp_get_redirect_to(); 607 607 608 608 // Get the reply URL … … 1417 1417 1418 1418 // Redirect to 1419 $redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';1419 $redirect_to = bbp_get_redirect_to(); 1420 1420 1421 1421 // Get the reply URL -
trunk/includes/topics/functions.php
r4654 r4655 344 344 345 345 // Redirect to 346 $redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';346 $redirect_to = bbp_get_redirect_to(); 347 347 348 348 // Get the topic URL … … 682 682 683 683 // Redirect to 684 $redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';684 $redirect_to = bbp_get_redirect_to(); 685 685 686 686 // View all?
Note: See TracChangeset
for help on using the changeset viewer.