[wp-trac] [WordPress Trac] #54525: URL Object

WordPress Trac noreply at wordpress.org
Sat Nov 27 19:09:11 UTC 2021


#54525: URL Object
-------------------------+------------------------------
 Reporter:  grosfaignan  |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by grosfaignan):

 the actual problem in wordpress is when we catch any url, we can't know
 how it was build by wordpress-core.
 by the way, if we catch an url like " http://localhost/supersonic " we can
 use this url to make a real routing, because we don't know how wordpress
 have build it,so we can't know if " /supersonic" refer to a user_name, tu
 a user_product, to a category, or to any other item.

 so if we could have an object ready to explain url building process by
 wordpress. we could catch referent data more efficiently

 convertly if in the url object we could get something like:

 {{{
 /**...*/
 path: "supersonic" => refer_to: WP_user //for example
 }}}
 we could make routing more efficiently

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


More information about the wp-trac mailing list