Function __global->is_unhelpful_redirect

Definitions

sources/global4.php

  • Find if a particular redirect is itself pointing to a login/join page, and thus should not be injected as a nested redirect.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$redirect string No No required parameter N/A N/A Redirect to check

Returns

  • If it is unhelpful
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find if a particular redirect is itself pointing to a login/join page, and thus should not be injected as a nested redirect.
 *
 * @param  string $redirect Redirect to check
 * @return boolean If it is unhelpful
 */

function is_unhelpful_redirect(string $redirect) : bool