v1.6.5
This commit is contained in:
parent
e568b54336
commit
c72a96e2a0
1 changed files with 69 additions and 46 deletions
|
|
@ -1113,14 +1113,16 @@ class Profile_Settings {
|
|||
/**
|
||||
* Append the 2FA section anchor to redirects when requested.
|
||||
*
|
||||
* @param string $location Redirect destination.
|
||||
* @param int $status HTTP status code.
|
||||
* @param string|null $location Redirect destination (null from sloppy wp_redirect() callers).
|
||||
* @param int|null $status HTTP status code.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function maybe_append_section_anchor( string $location, int $status ): string {
|
||||
public function maybe_append_section_anchor( ?string $location, ?int $status = null ): string {
|
||||
unset( $status );
|
||||
|
||||
$location = $location ?? '';
|
||||
|
||||
if ( ! $this->focus_section ) {
|
||||
return $location;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue