[wp-trac] [WordPress Trac] #53426: Escaping function missing.

WordPress Trac noreply at wordpress.org
Thu Jun 17 12:33:50 UTC 2021


#53426: Escaping function missing.
----------------------------+---------------------
 Reporter:  chintan1896     |       Owner:  (none)
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  5.8
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+---------------------

Comment (by SergeyBiryukov):

 On second thought, we could use something like this in `wp-includes/class-
 wp-embed.php`:
 {{{
 $.get("<?php echo esc_url( admin_url( 'admin-ajax.php', 'relative' ) ) .
 '?action=oembed-cache&post=' . $post->ID; ?>");
 }}}
 It would be consistent with a similar line in `wp-admin/includes/image-
 edit.php` (as seen in the patch).

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


More information about the wp-trac mailing list