Plugin Directory

Changeset 2027706


Ignore:
Timestamp:
02/09/2019 10:47:31 AM (7 years ago)
Author:
mraliende
Message:

1.18 bugfix for wordpress 4.9.9 and smaller

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

Legend:

Unmodified
Added
Removed
  • good-url-preview-box/tags/1.18/gurlpb-config.php

    r2019979 r2027706  
    11<?php
    22class Gurlpb_config {
    3     public static $_VERSION = '1.17'; // CHANGE ALSO IN gute-url-preview-box.php, README AND IN SVN!
     3    public static $_VERSION = '1.18'; // 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.18/gurlpb-start.php

    r2027677 r2027706  
    5959
    6060    add_action( 'init', 'gurlpb_buttons' );
    61     add_action( 'init', 'gurlpb_gutenberg' );
     61    $nWpV = intval(get_bloginfo( 'version' ));
     62    if ( $nWpV>=5 && function_exists( 'is_gutenberg_page' ) && is_gutenberg_page() ) {
     63        add_action( 'init', 'gurlpb_gutenberg' );
     64    } else {
     65        add_action('admin_footer', 'gurlpb_admin_add_guteurls_js');
     66    }
     67   
    6268    add_action( 'wp_footer', 'gurlpb_javascript_include', 20 );
    6369   
     
    8086function gurlpb_gutenberg() {
    8187    Gurlpb_utils::log( __FUNCTION__ . '[' . __LINE__ . "]" );
    82 //    wp_register_script(
    83 //        'gurlpb-gutenberg-block',
    84 //        plugins_url( 'gurlpb-gutenberg-block.js', __FILE__ ),
    85 //        array( 'wp-blocks', 'wp-element' )
    86 //    );
    8788
    8889    register_block_type( 'gutenberg-boilerplate-es5/gurlpb', array(
  • good-url-preview-box/tags/1.18/gute-url-preview-box.php

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

    r2027677 r2027706  
    33Donate link: https://guteurls.de/donate.php
    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
    5 Requires at least: 5.0.2
     5Requires at least: 4.9.0
    66Tested up to: 5.0.3
    77Stable tag: 5.0.3
     
    115115== Upgrade Notice ==
    116116
     117= 1.18 =
     118Bugfix for Wordpress 4.9.9 and smaller
     119
    117120= 1.17 =
    118121Two big modifications:
     
    168171== Changelog ==
    169172
     173= 1.18 =
     174Bugfix for Wordpress 4.9.9 and smaller
     175
    170176= 1.17 =
    171177Support of the new Wordpress Editor Gutenberg.
  • good-url-preview-box/trunk/gurlpb-config.php

    r2019979 r2027706  
    11<?php
    22class Gurlpb_config {
    3     public static $_VERSION = '1.17'; // CHANGE ALSO IN gute-url-preview-box.php, README AND IN SVN!
     3    public static $_VERSION = '1.18'; // 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

    r2027677 r2027706  
    5959
    6060    add_action( 'init', 'gurlpb_buttons' );
    61     add_action( 'init', 'gurlpb_gutenberg' );
     61    $nWpV = intval(get_bloginfo( 'version' ));
     62    if ( $nWpV>=5 && function_exists( 'is_gutenberg_page' ) && is_gutenberg_page() ) {
     63        add_action( 'init', 'gurlpb_gutenberg' );
     64    } else {
     65        add_action('admin_footer', 'gurlpb_admin_add_guteurls_js');
     66    }
     67   
    6268    add_action( 'wp_footer', 'gurlpb_javascript_include', 20 );
    6369   
     
    8086function gurlpb_gutenberg() {
    8187    Gurlpb_utils::log( __FUNCTION__ . '[' . __LINE__ . "]" );
    82 //    wp_register_script(
    83 //        'gurlpb-gutenberg-block',
    84 //        plugins_url( 'gurlpb-gutenberg-block.js', __FILE__ ),
    85 //        array( 'wp-blocks', 'wp-element' )
    86 //    );
    8788
    8889    register_block_type( 'gutenberg-boilerplate-es5/gurlpb', array(
  • good-url-preview-box/trunk/gute-url-preview-box.php

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

    r2027677 r2027706  
    33Donate link: https://guteurls.de/donate.php
    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
    5 Requires at least: 5.0.2
     5Requires at least: 4.9.0
    66Tested up to: 5.0.3
    77Stable tag: 5.0.3
     
    115115== Upgrade Notice ==
    116116
     117= 1.18 =
     118Bugfix for Wordpress 4.9.9 and smaller
     119
    117120= 1.17 =
    118121Two big modifications:
     
    168171== Changelog ==
    169172
     173= 1.18 =
     174Bugfix for Wordpress 4.9.9 and smaller
     175
    170176= 1.17 =
    171177Support of the new Wordpress Editor Gutenberg.
Note: See TracChangeset for help on using the changeset viewer.