[wp-trac] [WordPress Trac] #16858: Usage of HTTP_HOST in the administration

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 17 15:16:52 UTC 2011


#16858: Usage of HTTP_HOST in the administration
----------------------------+------------------------------
 Reporter:  amirhabibi      |       Owner:
     Type:  defect (bug)    |      Status:  reopened
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  3.1
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |
----------------------------+------------------------------

Comment (by hakre):

 Yes a function is missing inside core that is able to retrieve the current
 admin page from request that can be used with the $path parameter of
 self_admin_url().

 self_admin_path() ?

 If I read #9235 right, then a function that builds anything close to the
 return value of get_site_url() or get_admin_url() so to be compared
 against anything and re-use the remainder as $path does not exists and is
 highly likely not to be written in the future.

 However I don't want to suggest to close this ticket as wontfix. Any idea
 how this could be solved?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16858#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list