- Timestamp:
- 04/13/2021 07:23:31 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/common/includes/wporg-sso/class-wporg-sso.php
r10374 r10889 11 11 const SUPPORT_EMAIL = 'forum-password-resets@wordpress.org'; 12 12 13 const LOGIN_TOS_COOKIE = 'wporg_tos_login'; 14 const TOS_USER_META_KEY = 'tos_revision'; 15 13 16 const VALID_HOSTS = [ 14 17 'wordpress.org', … … 25 28 public $script; 26 29 30 private static $instance = null; 31 27 32 /** 28 33 * Constructor, instantiate common properties … … 37 42 $this->script = $_SERVER['SCRIPT_NAME']; 38 43 } 44 } 45 46 public static function get_instance() { 47 if ( is_null( self::$instance ) ) { 48 $class = get_called_class(); 49 self::$instance = new $class; 50 } 51 52 return self::$instance; 39 53 } 40 54 … … 195 209 } 196 210 211 if ( function_exists( 'apply_filters' ) ) { 212 $to = apply_filters( 'wp_redirect', $to, $status ); 213 } 214 197 215 header( 198 216 'Location: ' . $to,
Note: See TracChangeset
for help on using the changeset viewer.