[wp-trac] [WordPress Trac] #49683: Multisite oEmbeds of URLs ignore query parameters

WordPress Trac noreply at wordpress.org
Mon Mar 23 03:14:24 UTC 2020


#49683: Multisite oEmbeds of URLs ignore query parameters
--------------------------+------------------------------
 Reporter:  dd32          |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Embeds        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by dd32):

 I guess this a bug in `url_to_postid()` instead then, as it
 [https://core.trac.wordpress.org/browser/tags/5.3/src/wp-
 includes/rewrite.php?marks=500-502#L468 deliberately] ignores query args
 unless it's a Post ID in `p`, `page_id`, or `attachment_id`.

 {{{
 url_to_postid( home_url( '?s=search_Term' ) )
 }}}
 should not return truthy.

 Perhaps that method could simply only strip non-WordPress-registered query
 vars.

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


More information about the wp-trac mailing list