Changeset 11254
- Timestamp:
- 09/24/2021 01:45:53 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/dotorg/trac/pr/functions.php
r11245 r11254 345 345 // Convert Images (Must happen prior to Links, as the only difference is a preceeding !) 346 346 $desc = preg_replace( '#!\[(.+?)\]\(https?://(.+?)\)#', '[[Image(https://i0.wp.com/$2)]]', $desc ); 347 // Convert Images embedded as `<img>`. 348 $desc = preg_replace( '#<img[^>]+src=(["\'])(https?://(.+?)\\1[^>]*>#', '[[Image(https://i0.wp.com/$2)]]', $desc ); 347 349 348 350 // Convert Links.
Note: See TracChangeset
for help on using the changeset viewer.