[wp-trac] [WordPress Trac] #56657: Invalid URL in class-wp-embed.php file
WordPress Trac
noreply at wordpress.org
Mon Sep 26 14:53:53 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: Cache API | Version: trunk
Severity: blocker | Keywords: has-patch
Focuses: |
--------------------------+-----------------------------
Hi,
In line https://github.com/WordPress/wordpress-
develop/blob/599622ccc76d31a63c685b5657307d662d4bcae5/src/wp-includes
/class-wp-embed.php#L93 there is an invalid URL structure and causing a
404 error on AJAX call.
Current Version
{{{
$.get("<?php echo esc_url( admin_url( 'admin-ajax.php', 'relative' ) ) .
'?action=oembed-cache&post=' . $post->ID; ?>");
}}}
Hope it should be like
{{{#!php
<?php
$.get("<?php echo esc_url( admin_url( 'admin-ajax.php', 'relative' ) ) .
'&action=oembed-cache&post=' . $post->ID; ?>");
}}}
The ? should be replaced with &.
Please let me know if the above is not clear.
Thanks
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56657>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list