Plugin Directory

Changeset 2723566


Ignore:
Timestamp:
05/13/2022 08:27:34 PM (4 years ago)
Author:
communicatti
Message:

version 1.1.25

Location:
pxl-tools
Files:
3 edited
11 copied

Legend:

Unmodified
Added
Removed
  • pxl-tools/tags/1.1.25/helpers/Youtube.php

    r2723563 r2723566  
    1515    public static function get_embed_url($url = null, $default = null)
    1616    {
     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
    1723        if (strpos($url, 'embed')) {
    1824            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;
    2525        }
    2626
  • pxl-tools/tags/1.1.25/pxl-tools.php

    r2723563 r2723566  
    1010 * License:     GPL-2.0
    1111 * License URI: https://opensource.org/licenses/GPL-2.0
    12  * Version:     1.1.24
     12 * Version:     1.1.25
    1313 *
    1414 *
  • pxl-tools/tags/1.1.25/readme.txt

    r2723563 r2723566  
    77License: https://opensource.org/licenses/GPL-2.0
    88License URI: https://opensource.org/licenses/GPL-2.0
    9 Stable tag: 1.1.24
     9Stable tag: 1.1.25
    1010A Toolbelt for Wordpress development
    1111
  • pxl-tools/trunk/helpers/Youtube.php

    r2723563 r2723566  
    1515    public static function get_embed_url($url = null, $default = null)
    1616    {
     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
    1723        if (strpos($url, 'embed')) {
    1824            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;
    2525        }
    2626
  • pxl-tools/trunk/pxl-tools.php

    r2723563 r2723566  
    1010 * License:     GPL-2.0
    1111 * License URI: https://opensource.org/licenses/GPL-2.0
    12  * Version:     1.1.24
     12 * Version:     1.1.25
    1313 *
    1414 *
  • pxl-tools/trunk/readme.txt

    r2723563 r2723566  
    77License: https://opensource.org/licenses/GPL-2.0
    88License URI: https://opensource.org/licenses/GPL-2.0
    9 Stable tag: 1.1.24
     9Stable tag: 1.1.25
    1010A Toolbelt for Wordpress development
    1111
Note: See TracChangeset for help on using the changeset viewer.