[wp-trac] [WordPress Trac] #29427: Adjust oEmbed reges for Slideshare
WordPress Trac
noreply at wordpress.org
Fri Aug 29 13:59:58 UTC 2014
#29427: Adjust oEmbed reges for Slideshare
--------------------------+-----------------------------
Reporter: Latz | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Embeds | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
The current regex in class-oembed.php for slideshare assumes that the URL
is "www.slideshare.net" or "slideshare.net".
Accessing slideshare from Germany I experienced that the URL is
"de.slideshare.net". I assume there are others for various languages.
This patch changes
{{{'#https?://(www\.)?slideshare\.net/.*#i'}}}
to
{{{'#https?://(.+\.)?slideshare\.net/.*#i'}}}
so that these URLs permitted to be embedded.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29427>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list