[wp-trac] [WordPress Trac] #57262: force_ssl_admin can be set to return a string
WordPress Trac
noreply at wordpress.org
Fri Dec 2 20:57:03 UTC 2022
#57262: force_ssl_admin can be set to return a string
--------------------------+-----------------------------
Reporter: pbearne | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
See these tests
$this->assertTrue( force_ssl_admin( 'a string' ), 'set true' );
$this->assertSame( 'a string', force_ssl_admin(), 'check is still true' );
I will add a check that Bool is passed in not string
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57262>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list