Plugin Directory

Changeset 2346659


Ignore:
Timestamp:
07/26/2020 08:41:13 AM (6 years ago)
Author:
rvencu
Message:

ver 1.4.1 removed scriptaculous

Location:
wikitip-knowledge-cluster-tooltip-for-wordpress/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wikitip-knowledge-cluster-tooltip-for-wordpress/trunk/readme.txt

    r2335640 r2346659  
    55Requires at least: 3.1
    66Tested up to: 5.4.2
    7 Stable tag: 1.4
     7Stable tag: 1.4.1
    88
    99This plugin integrates a tooltip dictionary/glossary/thesaurus with terms definitions stored at wikitip.info. Users may create their own clusters for free.
     
    7373
    7474== Changelog ==
     75
     76= 1.4.1 =
     771. removed scriptaculous script that breaks javascript on backend
    7578
    7679= 1.4 =
  • wikitip-knowledge-cluster-tooltip-for-wordpress/trunk/wikitip.php

    r2335640 r2346659  
    66 * Author: Richard Vencu
    77 * Author URI: http://richardconsulting.ro
    8  * Version: 1.4
     8 * Version: 1.4.1
    99 * License: GPLv2, MIT, GNU
    1010 *
     
    146146    add_action( 'admin_init', 'wikitip_admin_init' );
    147147    add_action( 'wpmu_new_blog', 'wikitip_init_newblog' );
    148     add_action( 'admin_menu', 'wikitip_load_effects' );
     148    //add_action( 'admin_menu', 'wikitip_load_effects' );
    149149    /* Add custom filters. */
    150150
     
    429429    }
    430430
    431     if ( ( $wikitip_options['loggedin'] == 1 && is_user_logged_in() ) || $wikitip_options['loggedin'] == 0 ) {
    432         if ( ( $singular == 1 && ! is_front_page() || $wikitip_options['frontpage'] == 1 && is_front_page() ) ||
    433              ( $wikitip_options['search'] == 1 && is_search() ) ||
    434              ( $wikitip_options['archive'] == 1 && is_archive() ) ||
    435              ( $wikitip_options['category'] == 1 && is_category() ) ||
    436              ( $wikitip_options['author'] == 1 && is_author() ) ||
    437              ( $wikitip_options['tag'] == 1 && is_tag() )
    438         ) {
    439             add_action( 'wp_footer', 'wikitip_load_header' );
    440 
    441             if ( $wikitip_options['usercontrol'] == 1 ) {
    442                 add_action( 'wp_print_footer_scripts', 'wikitip_load_ui', 98 );
     431    if ( ! is_admin() ) {
     432        if ( ( $wikitip_options['loggedin'] == 1 && is_user_logged_in() ) || $wikitip_options['loggedin'] == 0 ) {
     433            if ( ( $singular == 1 && ! is_front_page() || $wikitip_options['frontpage'] == 1 && is_front_page() ) ||
     434                 ( $wikitip_options['search'] == 1 && is_search() ) ||
     435                 ( $wikitip_options['archive'] == 1 && is_archive() ) ||
     436                 ( $wikitip_options['category'] == 1 && is_category() ) ||
     437                 ( $wikitip_options['author'] == 1 && is_author() ) ||
     438                 ( $wikitip_options['tag'] == 1 && is_tag() )
     439            ) {
     440                add_action( 'wp_footer', 'wikitip_load_header' );
     441
     442                if ( $wikitip_options['usercontrol'] == 1 ) {
     443                    add_action( 'wp_print_footer_scripts', 'wikitip_load_ui', 98 );
     444                }
    443445            }
    444446        }
Note: See TracChangeset for help on using the changeset viewer.