[wp-trac] [WordPress Trac] #34971: Embedding static front pages on multisite does not work

WordPress Trac noreply at wordpress.org
Wed Dec 16 10:47:41 UTC 2015


#34971: Embedding static front pages on multisite does not work
--------------------------------------+--------------------
 Reporter:  thomaslhotta              |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  4.4.1
Component:  Embeds                    |     Version:  4.4
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+--------------------

Comment (by swissspidy):

 [attachment:34971.3.diff] is a new patch that makes `get_post_embed_url()`
 fall back to ugly permalinks when the path conflicts with another post.
 Adds two new unit tests for it.

 Uses `get_page_by_path()` after stripping of the `home_url()` because
 `url_to_postid` strips off query vars like `embed`.  There's probably a
 nicer solution for that, so let me know how it can be improved.

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


More information about the wp-trac mailing list