[wp-trac] [WordPress Trac] #1: Handle https:// when manipulating 'home'

WordPress Trac noreply at wordpress.org
Thu Oct 15 13:10:14 UTC 2020


#1: Handle https:// when manipulating 'home'
--------------------------+---------------------
 Reporter:  ryan          |       Owner:  ryan
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  General       |     Version:
 Severity:  minor         |  Resolution:  fixed
 Keywords:                |     Focuses:
--------------------------+---------------------
Description changed by SergeyBiryukov:

Old description:

> This:
>
> preg_replace('|https?://[^/]+|i', '', get_settings('home') . '/' )
>
> Instead of this:
>
> preg_replace('|http://[^/]+|i', '', get_settings('home') . '/' )

New description:

 This:
 {{{
 preg_replace('|https?://[^/]+|i', '', get_settings('home') . '/' )
 }}}
 Instead of this:
 {{{
 preg_replace('|http://[^/]+|i', '', get_settings('home') . '/' )
 }}}

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/1#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list