[wp-trac] [WordPress Trac] #56302: Admin menu links have relative URLs

WordPress Trac noreply at wordpress.org
Sun Jul 31 01:00:36 UTC 2022

#56302: Admin menu links have relative URLs
 Reporter:  iihglobal        |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Administration   |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-screenshots  |     Focuses:  administration
Changes (by costdev):

 * Attachment "56302.diff" added.

 Use `WP_Http::make_absolute_url()` with `admin_url()` to make admin menu
 links relative to `admin_url()`. `WP_Http::make_absolute_url()`
 documentation states: "If an Absolute URL is provided, no processing of
 that URL is done."

Ticket URL: <https://core.trac.wordpress.org/ticket/56302>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list