Plugin Directory

Changeset 2404387


Ignore:
Timestamp:
10/22/2020 06:43:59 AM (5 years ago)
Author:
restpack
Message:

minor

Location:
announcekit/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • announcekit/trunk/admin.js

    r2320939 r2404387  
    3838  js_code_input.on("blur", function() {
    3939    var snippet = jQuery(this).val();
    40     var is_valid_snippet = /https:\/\/announcekit\.app\/widgets?(\/v2)?\//.test(snippet);
     40    var is_valid_snippet = /\/widgets?(\/v2)?\//.test(snippet);
    4141
    4242    if (!is_valid_snippet) {
  • announcekit/trunk/index.php

    r2320939 r2404387  
    6565
    6666      $widget_url = [];
    67       preg_match('/https:\/\/announcekit.app\/widgets?(\/v2)?\/([a-zA-Z0-9]+)/', $input['js_code'], $widget_url);
     67      preg_match('/https:\/\/(.*)\/widgets?(\/v2)?\/([a-zA-Z0-9]+)/', $input['js_code'], $widget_url);
    6868
    6969      if ($widget_url && $widget_url[0]) {
  • announcekit/trunk/readme.txt

    r2320939 r2404387  
    33Tags: newsfeed, changelog, news, user feedback, announcement
    44Requires at least: 4.1
    5 Tested up to: 5.2.1
    6 Stable tag: 2.0.1
     5Tested up to: 5.4
     6Stable tag: 2.0.2
    77Requires PHP: 5.2.4
    88License: GNUGPLv3
     
    5656== Changelog ==
    5757
     58= 2.0.2 =
     59* Minor
     60
    5861= 2.0.1 =
    5962* Backward compability
Note: See TracChangeset for help on using the changeset viewer.