Changeset 2723566
- Timestamp:
- 05/13/2022 08:27:34 PM (4 years ago)
- Location:
- pxl-tools
- Files:
-
- 3 edited
- 11 copied
-
tags/1.1.25 (copied) (copied from pxl-tools/trunk)
-
tags/1.1.25/README.md (copied) (copied from pxl-tools/trunk/README.md)
-
tags/1.1.25/helpers/Youtube.php (copied) (copied from pxl-tools/trunk/helpers/Youtube.php) (1 diff)
-
tags/1.1.25/pxl-tools.php (copied) (copied from pxl-tools/trunk/pxl-tools.php) (1 diff)
-
tags/1.1.25/readme.txt (copied) (copied from pxl-tools/trunk/readme.txt) (1 diff)
-
tags/1.1.25/vendor/autoload.php (copied) (copied from pxl-tools/trunk/vendor/autoload.php)
-
tags/1.1.25/vendor/composer/InstalledVersions.php (copied) (copied from pxl-tools/trunk/vendor/composer/InstalledVersions.php)
-
tags/1.1.25/vendor/composer/autoload_real.php (copied) (copied from pxl-tools/trunk/vendor/composer/autoload_real.php)
-
tags/1.1.25/vendor/composer/autoload_static.php (copied) (copied from pxl-tools/trunk/vendor/composer/autoload_static.php)
-
tags/1.1.25/vendor/composer/installed.php (copied) (copied from pxl-tools/trunk/vendor/composer/installed.php)
-
tags/1.1.25/vendor/symfony/polyfill-mbstring/bootstrap.php (copied) (copied from pxl-tools/trunk/vendor/symfony/polyfill-mbstring/bootstrap.php)
-
trunk/helpers/Youtube.php (modified) (1 diff)
-
trunk/pxl-tools.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pxl-tools/tags/1.1.25/helpers/Youtube.php
r2723563 r2723566 15 15 public static function get_embed_url($url = null, $default = null) 16 16 { 17 parse_str(parse_url($url, PHP_URL_QUERY), $params); 18 $video_id = isset($params['v']) ? $params['v'] : null; 19 if ($video_id) { 20 return '//www.youtube.com/embed/' . $video_id; 21 } 22 17 23 if (strpos($url, 'embed')) { 18 24 return $url; 19 }20 21 parse_str(parse_url($url, PHP_URL_QUERY), $params);22 $video_id = $params['v'] ?? null;23 if (!$video_id) {24 return '//www.youtube.com/embed/' . $video_id;25 25 } 26 26 -
pxl-tools/tags/1.1.25/pxl-tools.php
r2723563 r2723566 10 10 * License: GPL-2.0 11 11 * License URI: https://opensource.org/licenses/GPL-2.0 12 * Version: 1.1.2 412 * Version: 1.1.25 13 13 * 14 14 * -
pxl-tools/tags/1.1.25/readme.txt
r2723563 r2723566 7 7 License: https://opensource.org/licenses/GPL-2.0 8 8 License URI: https://opensource.org/licenses/GPL-2.0 9 Stable tag: 1.1.2 49 Stable tag: 1.1.25 10 10 A Toolbelt for Wordpress development 11 11 -
pxl-tools/trunk/helpers/Youtube.php
r2723563 r2723566 15 15 public static function get_embed_url($url = null, $default = null) 16 16 { 17 parse_str(parse_url($url, PHP_URL_QUERY), $params); 18 $video_id = isset($params['v']) ? $params['v'] : null; 19 if ($video_id) { 20 return '//www.youtube.com/embed/' . $video_id; 21 } 22 17 23 if (strpos($url, 'embed')) { 18 24 return $url; 19 }20 21 parse_str(parse_url($url, PHP_URL_QUERY), $params);22 $video_id = $params['v'] ?? null;23 if (!$video_id) {24 return '//www.youtube.com/embed/' . $video_id;25 25 } 26 26 -
pxl-tools/trunk/pxl-tools.php
r2723563 r2723566 10 10 * License: GPL-2.0 11 11 * License URI: https://opensource.org/licenses/GPL-2.0 12 * Version: 1.1.2 412 * Version: 1.1.25 13 13 * 14 14 * -
pxl-tools/trunk/readme.txt
r2723563 r2723566 7 7 License: https://opensource.org/licenses/GPL-2.0 8 8 License URI: https://opensource.org/licenses/GPL-2.0 9 Stable tag: 1.1.2 49 Stable tag: 1.1.25 10 10 A Toolbelt for Wordpress development 11 11
Note: See TracChangeset
for help on using the changeset viewer.