Plugin Directory

Changeset 2838847


Ignore:
Timestamp:
12/24/2022 06:32:12 AM (3 years ago)
Author:
mi13
Message:

fix bug

Location:
mi13-glossary/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mi13-glossary/trunk/mi13-glossary.php

    r2835271 r2838847  
    44Plugin URI:     https://wordpress.org/plugins/mi13-glossary/
    55Description:        Glossary plugin for your site (ru).
    6 Version:            2.3
     6Version:            2.4
    77Author:         mi13
    88Requires at least: 6.1.1
     
    112112
    113113function mi13_glossary_scripts() {
    114     if (is_single()) {
     114    if ( is_singular( 'post' ) ) {
    115115        wp_enqueue_script('jquery');
    116116        wp_enqueue_script('mi13_glossary', plugins_url('/js/mi13_glossary.js',__FILE__), array('jquery'),'0.1',true);
     
    154154
    155155function mi13_glossary($text){ //Пойск ключевых слов в теле поста
    156     if ( is_single() & !get_post_format() ) {
     156    if ( is_singular( 'post' ) & !get_post_format() ) {
    157157        $array = get_transient('mi13_glossary');
    158158        if ($array===false) {
  • mi13-glossary/trunk/readme.txt

    r2835271 r2838847  
    33Tags: glossary, modal keys
    44Tested up to: 6.1.1
    5 Stable tag: 2.3
     5Stable tag: 2.4
    66License: GPLv2 or later
    77License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    4949= 2.3 =
    5050* fix bag.
     51= 2.4 =
     52* fix bag (is_single).
Note: See TracChangeset for help on using the changeset viewer.