Changeset 3167013
- Timestamp:
- 10/11/2024 08:43:28 AM (17 months ago)
- Location:
- graphcomment-comment-system/trunk
- Files:
-
- 2 edited
-
graphcomment.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
graphcomment-comment-system/trunk/graphcomment.php
r3156157 r3167013 6 6 * Author: GraphComment <[email protected]> 7 7 * Author URI: https://graphcomment.com/ 8 * Version: 4.0. 18 * Version: 4.0.2 9 9 * License: GPL 10 10 * Text Domain: graphcomment-comment-system … … 16 16 } 17 17 18 define('GRAPHCOMMENT_VERSION', '4.0. 1');18 define('GRAPHCOMMENT_VERSION', '4.0.2'); 19 19 20 20 require_once ABSPATH . 'wp-admin/includes/plugin.php'; … … 26 26 if (!$max_execution_time || $max_execution_time < 5000) { 27 27 ini_set('max_execution_time', 5000); 28 29 // Vérifier si set_time_limit est disponible et non désactivée 28 30 $disabled_functions = explode(',', ini_get('disable_functions')); 29 if ( !in_array('set_time_limit', $disabled_functions)) {30 set_time_limit(5000); 31 if (function_exists('set_time_limit') && !in_array('set_time_limit', $disabled_functions)) { 32 set_time_limit(5000); // Appliquer le temps limite seulement si la fonction est autorisée 31 33 } 32 34 } … … 169 171 170 172 // Vérification du type de thème et ajout des filtres appropriés 171 if (!wp_is_block_theme()) { 173 if (function_exists('wp_is_block_theme') && wp_is_block_theme()) { 174 add_filter('pre_render_block', 'graphcomment_remove_comment_block', 10, 2); 175 } else { 172 176 add_filter('comments_template', 'graphcomment_comments_template'); 173 } else {174 add_filter('pre_render_block', 'graphcomment_remove_comment_block', 10, 2);175 177 } 176 178 -
graphcomment-comment-system/trunk/readme.txt
r3156157 r3167013 4 4 Requires at least: 3.4 5 5 Tested up to: 6.6.2 6 Stable tag: 4.0. 16 Stable tag: 4.0.2 7 7 Donate link: https://graphcomment.com 8 8 License: GPL … … 159 159 == Changelog == 160 160 161 = 4.0.2 = 162 * fix: old version plugin load graphcomment 163 161 164 = 4.0.1 = 162 165 * fix: error env variable
Note: See TracChangeset
for help on using the changeset viewer.