Changeset 2838847
- Timestamp:
- 12/24/2022 06:32:12 AM (3 years ago)
- Location:
- mi13-glossary/trunk
- Files:
-
- 2 edited
-
mi13-glossary.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mi13-glossary/trunk/mi13-glossary.php
r2835271 r2838847 4 4 Plugin URI: https://wordpress.org/plugins/mi13-glossary/ 5 5 Description: Glossary plugin for your site (ru). 6 Version: 2. 36 Version: 2.4 7 7 Author: mi13 8 8 Requires at least: 6.1.1 … … 112 112 113 113 function mi13_glossary_scripts() { 114 if ( is_single()) {114 if ( is_singular( 'post' ) ) { 115 115 wp_enqueue_script('jquery'); 116 116 wp_enqueue_script('mi13_glossary', plugins_url('/js/mi13_glossary.js',__FILE__), array('jquery'),'0.1',true); … … 154 154 155 155 function mi13_glossary($text){ //Пойск ключевых слов в теле поста 156 if ( is_sing le() & !get_post_format() ) {156 if ( is_singular( 'post' ) & !get_post_format() ) { 157 157 $array = get_transient('mi13_glossary'); 158 158 if ($array===false) { -
mi13-glossary/trunk/readme.txt
r2835271 r2838847 3 3 Tags: glossary, modal keys 4 4 Tested up to: 6.1.1 5 Stable tag: 2. 35 Stable tag: 2.4 6 6 License: GPLv2 or later 7 7 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 49 49 = 2.3 = 50 50 * fix bag. 51 = 2.4 = 52 * fix bag (is_single).
Note: See TracChangeset
for help on using the changeset viewer.