[wp-trac] [WordPress Trac] #63110: Site Editor: Update old URLs to new path-based URLs

WordPress Trac noreply at wordpress.org
Sun Mar 16 05:12:20 UTC 2025


#63110: Site Editor: Update old URLs to new path-based URLs
--------------------------+-----------------------------
 Reporter:  wildworks     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:
 Severity:  normal        |   Keywords:  good-first-bug
  Focuses:                |
--------------------------+-----------------------------
 Related Gutenberg issue:
 https://github.com/WordPress/gutenberg/issues/69584

 Currently, the site editor references the `p` GET parameter to determine
 which page to show. However, there are some URLs that use old parameters
 (`postType`, `path`, etc)

 It would be good to update these URLs to avoid unnecessary URL
 redirection.


 From what I can see, there are three codes that need to be updated:

 - https://github.com/WordPress/wordpress-
 develop/blob/ed2f2ecd3fa043eca3a064a95fcb4830b5c0765c/src/wp-
 admin/includes/dashboard.php#L2118
 - https://github.com/WordPress/wordpress-
 develop/blob/ed2f2ecd3fa043eca3a064a95fcb4830b5c0765c/src/wp-
 includes/post.php#L339-L345
 - https://github.com/WordPress/wordpress-
 develop/blob/ed2f2ecd3fa043eca3a064a95fcb4830b5c0765c/src/wp-
 includes/post.php#L511-L517

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


More information about the wp-trac mailing list