mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Forcing SSL logins now forces SSL for the entire admin, with no middle ground.
fixes #10267. git-svn-id: https://develop.svn.wordpress.org/trunk@28609 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
<?php
|
||||
|
||||
// tests for link-template.php and related URL functions
|
||||
/**
|
||||
* @group url
|
||||
*/
|
||||
class Tests_URL extends WP_UnitTestCase {
|
||||
var $_old_server;
|
||||
function setUp() {
|
||||
@@ -264,9 +267,9 @@ class Tests_URL extends WP_UnitTestCase {
|
||||
$this->assertEquals( $http_links[ $i ], set_url_scheme( $link, 'rpc' ) );
|
||||
|
||||
force_ssl_login( true );
|
||||
$this->assertEquals( $http_links[ $i ], set_url_scheme( $link, 'admin' ) );
|
||||
$this->assertEquals( $https_links[ $i ], set_url_scheme( $link, 'admin' ) );
|
||||
$this->assertEquals( $https_links[ $i ], set_url_scheme( $link, 'login_post' ) );
|
||||
$this->assertEquals( $http_links[ $i ], set_url_scheme( $link, 'login' ) );
|
||||
$this->assertEquals( $https_links[ $i ], set_url_scheme( $link, 'login' ) );
|
||||
$this->assertEquals( $https_links[ $i ], set_url_scheme( $link, 'rpc' ) );
|
||||
|
||||
$i++;
|
||||
|
||||
Reference in New Issue
Block a user