Changeset 2852737
- Timestamp:
- 01/23/2023 07:22:44 AM (3 years ago)
- Location:
- real-kit/trunk
- Files:
-
- 3 edited
-
mod/modals/index.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
real-kit.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
real-kit/trunk/mod/modals/index.php
r2832256 r2852737 21 21 } 22 22 23 // Если мо будь НЕ выключен23 // Если модудь НЕ выключен 24 24 if (get_option('realkit_modals_toggle') != 'off') { 25 25 … … 153 153 ), $args); 154 154 155 $modal = get_post($args['open']); 155 $modal = get_posts(array( 156 'post_type' => REALKIT_MODALS_POST_TYPE, 157 'post__in' => [intval($args['open'])], 158 )); 156 159 157 160 if (empty($modal)) return; 158 161 159 162 // Запомнить 160 Realkit_modals::$list[] = $modal ;161 162 $id = (empty($args['id'])) ? '' : ' id="' . $args['id']. '"';163 $class = (empty($args['class'])) ? '' : ' ' . $args['class'];164 $target = ' realkit_modal_target="#realkit_modal_' . $args['open']. '"';163 Realkit_modals::$list[] = $modal[0]; 164 165 $id = (empty($args['id'])) ? '' : ' id="' . sanitize_html_class($args['id']) . '"'; 166 $class = (empty($args['class'])) ? '' : ' ' . sanitize_html_class($args['class']); 167 $target = ' realkit_modal_target="#realkit_modal_' . intval($args['open']) . '"'; 165 168 $content = str_replace(array('<p>', '</p>'), '', $content); 166 169 … … 171 174 }); 172 175 173 // Вывест ьмодальные окна в конце страницы176 // Вывести модальные окна в конце страницы 174 177 add_action('wp_footer', function() { 175 178 -
real-kit/trunk/readme.txt
r2832256 r2852737 1 1 === real.Kit === 2 2 3 Stable tag: 5.1. 04 Requires at least: 5.1.13 Stable tag: 5.1.1 4 Requires at least: 6.1.1 5 5 Tested up to: 6.1 6 6 Requires PHP: 5.6 … … 90 90 == Changelog == 91 91 92 = 5.1.1 = 93 94 * Исправлена XSS уязвимость шорткода открытия модальных окон. 95 96 *Machine translation:* 97 98 * Fixed XSS vulnerability of the modal window opening shortcode. 99 92 100 = 5.1.0 = 93 101 -
real-kit/trunk/real-kit.php
r2832547 r2852737 2 2 /* 3 3 Plugin Name: real.Kit 4 Version: 5.1. 04 Version: 5.1.1 5 5 Author: realMaster 6 6 Text Domain: realkit
Note: See TracChangeset
for help on using the changeset viewer.