[wp-trac] [WordPress Trac] #56657: Invalid URL in class-wp-embed.php file

WordPress Trac noreply at wordpress.org
Mon Sep 26 20:21:33 UTC 2022


#56657: Invalid URL in class-wp-embed.php file
-----------------------------------------+------------------------------
 Reporter:  vinoth06                     |       Owner:  (none)
     Type:  defect (bug)                 |      Status:  new
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Embeds                       |     Version:  trunk
 Severity:  blocker                      |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:
-----------------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:  has-patch => has-patch reporter-feedback
 * component:  Cache API => Embeds


Comment:

 Hi there, welcome back to WordPress Trac! Thanks for the report.

 The URL was introduced in [12023] for WordPress 2.9, setting the version
 accordingly. It was further adjusted in [19871] to use a relative path and
 [51177] to use escaping.

 The current URL looks correct to me:
 {{{
 /wp-admin/admin-ajax.php?action=oembed-cache&post=123
 }}}
 The proposed change, on the other hand, does not look correct:
 {{{
 /wp-admin/admin-ajax.php&action=oembed-cache&post=123
 }}}

 If the current URL causes a 404 on your install, I think there might be
 something else at play here. Does the issue still happen with all plugins
 disabled and a default theme (Twenty Twenty-Two) activated? Could you
 share the steps to reproduce it on a clean install?

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


More information about the wp-trac mailing list