Plugin Directory

Changeset 2049255


Ignore:
Timestamp:
03/12/2019 06:30:36 PM (7 years ago)
Author:
mraliende
Message:

1.19 bugfix for user with licence-key - more then 10 boxes per post

Location:
good-url-preview-box
Files:
5 edited
45 copied

Legend:

Unmodified
Added
Removed
  • good-url-preview-box/tags/1.19/blocks/gurlpb/index.js

    r2019979 r2049255  
    6060            var gurlpbId = document.gurlpbData.cnt++;
    6161            var noNew = document.gurlpbData.noNew;
     62            var hasToken = document.gurlpbData.hasT;
    6263           
    6364            var validURL = function ( params ) {
     
    168169           
    169170            if ( ! linkedURL || linkedURL == '' ) {
    170                 if ( noNew == 0 && jQuery('.gurlpbGutenbergBox').length < 11) {
     171                if ( hasToken || ( ! noNew && jQuery('.gurlpbGutenbergBox').length < 5 ) ) {
    171172                    e = el('div', { className: "gurlpbGutenbergBox" },
    172173                            el('h3', { }, "URL Preview Box"),
  • good-url-preview-box/tags/1.19/gurlpb-config.php

    r2027706 r2049255  
    11<?php
    22class Gurlpb_config {
    3     public static $_VERSION = '1.18'; // CHANGE ALSO IN gute-url-preview-box.php, README AND IN SVN!
     3    public static $_VERSION = '1.19'; // CHANGE ALSO IN gute-url-preview-box.php, README AND IN SVN!
    44    public static $_DEBUG = false;
    55    public static $_LOCAL = false;
  • good-url-preview-box/tags/1.19/gurlpb-start.php

    r2027706 r2049255  
    115115   
    116116    $fNoNew = 0;
    117     if ( ! $fHasToken && $query->post_count > 10 ) {
     117    if ( ! $fHasToken && $query->post_count > 4 ) {
    118118        $fNoNew = 1;
    119119    }
     
    134134         . ' gutenbergBoxCnt: 0,'
    135135         . ' cnt: 0,'                                                               // js counter of Gutenberg blocks with URL preview boxes
    136          . ' noNew: ' . $fNoNew                                               // {0 | 1}. New URL allowed to add?
     136         . ' noNew: ' . $fNoNew . ','                                              // {0 | 1}. New URL allowed to add?
     137         . ' hasT: '. $fHasToken
    137138         . '}</script>';
    138139}
  • good-url-preview-box/tags/1.19/gute-url-preview-box.php

    r2027706 r2049255  
    66Author: Martin Schaedler
    77Author URI: https://hypnose54321.de/frankfurt/_contact.html
    8 Version: 1.18
     8Version: 1.19
    99Text Domain: gurlpb
    1010*/
  • good-url-preview-box/tags/1.19/readme.txt

    r2032120 r2049255  
    44Tags: link, links, URL, URLs, preview, preview image, guteurls, gute-urls, facebook, internet-link, post, posting, like Facebook, exacly like facebook, find url, find link, search link, search url, detect url, internet address
    55Requires at least: 4.9.0
    6 Tested up to: 5.0.3
    7 Stable tag: 5.1
     6Tested up to: 5.1
     7Stable tag: 5.0.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    115115== Upgrade Notice ==
    116116
     117= 1.19 =
     118Bugfix for user with licence-key: More then 10 preview box per post are allowed yet.
     119
    117120= 1.18 =
    118121Bugfix for Wordpress 4.9.9 and smaller
     
    170173
    171174== Changelog ==
     175= 1.19 =
     176Bugfix for user with licence-key: More then 10 preview box per post are allowed yet.
    172177
    173178= 1.18 =
  • good-url-preview-box/trunk/blocks/gurlpb/index.js

    r2019979 r2049255  
    6060            var gurlpbId = document.gurlpbData.cnt++;
    6161            var noNew = document.gurlpbData.noNew;
     62            var hasToken = document.gurlpbData.hasT;
    6263           
    6364            var validURL = function ( params ) {
     
    168169           
    169170            if ( ! linkedURL || linkedURL == '' ) {
    170                 if ( noNew == 0 && jQuery('.gurlpbGutenbergBox').length < 11) {
     171                if ( hasToken || ( ! noNew && jQuery('.gurlpbGutenbergBox').length < 5 ) ) {
    171172                    e = el('div', { className: "gurlpbGutenbergBox" },
    172173                            el('h3', { }, "URL Preview Box"),
  • good-url-preview-box/trunk/gurlpb-config.php

    r2027706 r2049255  
    11<?php
    22class Gurlpb_config {
    3     public static $_VERSION = '1.18'; // CHANGE ALSO IN gute-url-preview-box.php, README AND IN SVN!
     3    public static $_VERSION = '1.19'; // CHANGE ALSO IN gute-url-preview-box.php, README AND IN SVN!
    44    public static $_DEBUG = false;
    55    public static $_LOCAL = false;
  • good-url-preview-box/trunk/gurlpb-start.php

    r2027706 r2049255  
    115115   
    116116    $fNoNew = 0;
    117     if ( ! $fHasToken && $query->post_count > 10 ) {
     117    if ( ! $fHasToken && $query->post_count > 4 ) {
    118118        $fNoNew = 1;
    119119    }
     
    134134         . ' gutenbergBoxCnt: 0,'
    135135         . ' cnt: 0,'                                                               // js counter of Gutenberg blocks with URL preview boxes
    136          . ' noNew: ' . $fNoNew                                               // {0 | 1}. New URL allowed to add?
     136         . ' noNew: ' . $fNoNew . ','                                              // {0 | 1}. New URL allowed to add?
     137         . ' hasT: '. $fHasToken
    137138         . '}</script>';
    138139}
  • good-url-preview-box/trunk/gute-url-preview-box.php

    r2027706 r2049255  
    66Author: Martin Schaedler
    77Author URI: https://hypnose54321.de/frankfurt/_contact.html
    8 Version: 1.18
     8Version: 1.19
    99Text Domain: gurlpb
    1010*/
  • good-url-preview-box/trunk/readme.txt

    r2032120 r2049255  
    44Tags: link, links, URL, URLs, preview, preview image, guteurls, gute-urls, facebook, internet-link, post, posting, like Facebook, exacly like facebook, find url, find link, search link, search url, detect url, internet address
    55Requires at least: 4.9.0
    6 Tested up to: 5.0.3
    7 Stable tag: 5.1
     6Tested up to: 5.1
     7Stable tag: 5.0.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    115115== Upgrade Notice ==
    116116
     117= 1.19 =
     118Bugfix for user with licence-key: More then 10 preview box per post are allowed yet.
     119
    117120= 1.18 =
    118121Bugfix for Wordpress 4.9.9 and smaller
     
    170173
    171174== Changelog ==
     175= 1.19 =
     176Bugfix for user with licence-key: More then 10 preview box per post are allowed yet.
    172177
    173178= 1.18 =
Note: See TracChangeset for help on using the changeset viewer.