Ticket #10268: 10268.diff
File 10268.diff, 1.4 KB (added by , 16 years ago) |
---|
-
wp-admin/user-new.php
9 9 /** WordPress Administration Bootstrap */ 10 10 require_once('admin.php'); 11 11 12 // Redirect to https login if forced to use SSL 13 if ( force_ssl_login() && !is_ssl() ) { 14 if ( 0 === strpos($_SERVER['REQUEST_URI'], 'http') ) { 15 wp_redirect(preg_replace('|^http://|', 'https://', $_SERVER['REQUEST_URI'])); 16 exit(); 17 } else { 18 wp_redirect('https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); 19 exit(); 20 } 21 } 22 12 23 if ( !current_user_can('create_users') ) 13 24 wp_die(__('Cheatin’ uh?')); 14 25 -
wp-admin/user-edit.php
9 9 /** WordPress Administration Bootstrap */ 10 10 require_once('admin.php'); 11 11 12 // Redirect to https login if forced to use SSL 13 if ( force_ssl_login() && !is_ssl() ) { 14 if ( 0 === strpos($_SERVER['REQUEST_URI'], 'http') ) { 15 wp_redirect(preg_replace('|^http://|', 'https://', $_SERVER['REQUEST_URI'])); 16 exit(); 17 } else { 18 wp_redirect('https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); 19 exit(); 20 } 21 } 22 12 23 if ( !defined('IS_PROFILE_PAGE') ) 13 24 define('IS_PROFILE_PAGE', false); 14 25