Plugin Directory

Changeset 1880291


Ignore:
Timestamp:
05/23/2018 06:54:53 PM (8 years ago)
Author:
pressshack
Message:

Releasing 2.1.2

Location:
embedpress/trunk
Files:
2 added
11 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • embedpress/trunk/EmbedPress/Providers/Twitch.php

    r1817633 r1880291  
    2626     * @var     string
    2727     */
    28     private $urlRegexPattern = '~http[s]?:\/\/(?:www\.)twitch\.tv\/([a-zA-Z\-\_]+)\/?(chat\/?$)?~';
     28    private $urlRegexPattern = '/http[s]?:\/\/(?:www\.|clips\.)twitch\.tv\/([0-9a-zA-Z\-\_]+)\/?(chat\/?$)?/';
    2929
    3030    /**
     
    5454            $channelName = $matches[1];
    5555            $renderChatInsteadOfStream = (count($matches) > 2 && strtolower($matches[2]) === "chat");
     56            $isClip = stristr($url, 'clips.twitch.tv');
    5657
    57             $html = '<iframe src="https://www.twitch.tv/'. $channelName .'/'. ($renderChatInsteadOfStream ? 'chat' : 'embed' ) .'" height="{height}" width="{width}" scrolling="no" frameborder="0" title="" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
     58            if ($isClip !== False) {
     59                $providerUrl = 'https://clips.twitch.tv';
     60                $html = '<iframe src="https://clips.twitch.tv/embed?clip=' . $channelName . '&autoplay=false" height="{height}" width="{width}" scrolling="no" frameborder="0" allowfullscreen="true"></iframe>';
     61            } else {
     62                $providerUrl = 'https://www.twitch.tv';
     63                $html = '<iframe src="https://www.twitch.tv/' . $channelName . '/' . ($renderChatInsteadOfStream ? 'chat' : 'embed') . '" height="{height}" width="{width}" scrolling="no" frameborder="0" allowfullscreen="true"></iframe>';
     64            }
    5865
    5966            $response = array(
    6067                'type'          => ($renderChatInsteadOfStream ? 'rich' : 'video'),
    6168                'provider_name' => 'Twitch',
    62                 'provider_url'  => 'https://www.twitch.tv',
     69                'provider_url'  => $providerUrl,
    6370                'url'           => $url,
    6471                'html'          => $html
  • embedpress/trunk/embedpress.php

    r1860750 r1880291  
    66 * Author:      EmbedPress
    77 * Author URI:  http://embedpress.com
    8  * Version: 2.1.1
     8 * Version: 2.1.2
    99 * Text Domain: embedpress
    1010 * Domain Path: /languages
  • embedpress/trunk/includes.php

    r1860750 r1880291  
    2222
    2323if (!defined('EMBEDPRESS_PLG_VERSION')) {
    24     define('EMBEDPRESS_PLG_VERSION', "2.1.1");
     24    define('EMBEDPRESS_PLG_VERSION', "2.1.2");
    2525}
    2626
  • embedpress/trunk/providers.php

    r1817633 r1880291  
    1818    'GoogleMaps' => array("google.com", "google.com.*", "maps.google.com", "goo.gl", "google.co.*"),
    1919    'GoogleDocs' => array("docs.google.com"),
    20     'Twitch'     => array("twitch.tv"),
     20    'Twitch'     => array("twitch.tv", "clips.twitch.tv"),
    2121    'Giphy'      => array("giphy.com", "i.giphy.com")
    2222);
  • embedpress/trunk/readme.txt

    r1860750 r1880291  
    66Requires at least: 4.6
    77Tested up to: 4.9.4
    8 Stable tag: 2.1.1
     8Stable tag: 2.1.2
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    185185and this project adheres to [Semantic Versioning](http://semver.org/).
    186186
     187= [2.1.2] - 2018-05-23 =
     188
     189*Fixed:*
     190
     191* Fixed Twitch embeds with numbers;
     192
     193*Added:*
     194
     195* Added support to Twitch clips;
     196
    187197= [2.1.1] - 2018-04-18 =
    188198
  • embedpress/trunk/vendor/composer/installed.json

    r1860750 r1880291  
    217217    {
    218218        "name": "publishpress/wordpress-plugin-builder",
    219         "version": "2.1.4",
    220         "version_normalized": "2.1.4.0",
     219        "version": "2.1.5",
     220        "version_normalized": "2.1.5.0",
    221221        "source": {
    222222            "type": "git",
    223223            "url": "https://github.com/OSTraining/WordPress-Plugin-Builder",
    224             "reference": "6658ad5e35ec32877ee941e3680702bfb86986e5"
    225         },
    226         "time": "2018-03-01T22:09:46+00:00",
     224            "reference": "08aaa403dccdca27b298552a73cb4b8e427b0e47"
     225        },
     226        "time": "2018-05-03T10:09:29+00:00",
    227227        "type": "library",
    228228        "installation-source": "source",
Note: See TracChangeset for help on using the changeset viewer.