Plugin Directory

Changeset 3167013


Ignore:
Timestamp:
10/11/2024 08:43:28 AM (17 months ago)
Author:
graphcomment
Message:

fix load old version wp

Location:
graphcomment-comment-system/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • graphcomment-comment-system/trunk/graphcomment.php

    r3156157 r3167013  
    66 * Author: GraphComment <[email protected]>
    77 * Author URI: https://graphcomment.com/
    8  * Version: 4.0.1
     8 * Version: 4.0.2
    99 * License: GPL
    1010 * Text Domain: graphcomment-comment-system
     
    1616}
    1717
    18 define('GRAPHCOMMENT_VERSION', '4.0.1');
     18define('GRAPHCOMMENT_VERSION', '4.0.2');
    1919
    2020require_once ABSPATH . 'wp-admin/includes/plugin.php';
     
    2626    if (!$max_execution_time || $max_execution_time < 5000) {
    2727        ini_set('max_execution_time', 5000);
     28
     29        // Vérifier si set_time_limit est disponible et non désactivée
    2830        $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
    3133        }
    3234    }
     
    169171
    170172// Vérification du type de thème et ajout des filtres appropriés
    171 if (!wp_is_block_theme()) {
     173if (function_exists('wp_is_block_theme') && wp_is_block_theme()) {
     174    add_filter('pre_render_block', 'graphcomment_remove_comment_block', 10, 2);
     175} else {
    172176    add_filter('comments_template', 'graphcomment_comments_template');
    173 } else {
    174     add_filter('pre_render_block', 'graphcomment_remove_comment_block', 10, 2);
    175177}
    176178
  • graphcomment-comment-system/trunk/readme.txt

    r3156157 r3167013  
    44Requires at least: 3.4
    55Tested up to: 6.6.2
    6 Stable tag: 4.0.1
     6Stable tag: 4.0.2
    77Donate link: https://graphcomment.com
    88License: GPL
     
    159159== Changelog ==
    160160
     161= 4.0.2 =
     162* fix: old version plugin load graphcomment
     163
    161164= 4.0.1 =
    162165* fix: error env variable
Note: See TracChangeset for help on using the changeset viewer.