Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi. Comments can be disabled via the WP_REDIS_DISABLE_COMMENT constant. You can add define( 'WP_REDIS_DISABLE_COMMENT', true ); to your wp-config.php file.

    Thread Starter wpbcd

    (@wpbcd)

    Thank you for your response.

    As the analysis showed:

    1. With the plugin disabled, wp-activate.php works with an instance of the original WP_Object_Cache class from wp-includes/cache.php, which has the #[AllowDynamicProperties] attribute. Therefore, PHP does not generate a Deprecated warning.
    2. With the plugin enabled, wp-activate.php works with an instance of the WP_Object_Cache class from the redis-cache/includes/object-cache.php file.

    My proposed solution (I think this will be better than filing a trac ticket, as it will likely be rejected): Add the #[AllowDynamicProperties] attribute to the WP_Object_Cache class in the redis-cache/includes/object-cache.php file:

    #[AllowDynamicProperties]
    class WP_Object_Cache {
    ...
    }

    @icopydoc, приветствую.
    Проблема чуть глубже, чем использование init хука при подключении переводов. Как я понял до инициализации переводов любое использование функций i18n ( по типу __(), _e() и др ) будет вызывать NOTICE. И как понял по релизу 6.7.1 ничего больше править они не собираются))
    Вникнув в код вашего другого плагина (xml-for-google-merchant-center) нашел что проблему вызывают переводы в значениях след констант: COUNTRIES_LIST и USA_STATES в файлах /data/countries.php и /data/usa-states.php соответственно. Можно перенести эти константы в класс где они используются и проблема c NOTICE должна решиться (вроде и мелочь, а логи знатно забивает).

Viewing 3 replies - 1 through 3 (of 3 total)