wpbcd
Forum Replies Created
-
Hi. Comments can be disabled via the WP_REDIS_DISABLE_COMMENT constant. You can add
define( 'WP_REDIS_DISABLE_COMMENT', true );to yourwp-config.phpfile.Thank you for your response.
As the analysis showed:
- With the plugin disabled,
wp-activate.phpworks with an instance of the originalWP_Object_Cacheclass fromwp-includes/cache.php, which has the#[AllowDynamicProperties]attribute. Therefore, PHP does not generate aDeprecatedwarning. - With the plugin enabled,
wp-activate.phpworks with an instance of theWP_Object_Cacheclass from theredis-cache/includes/object-cache.phpfile.
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 theWP_Object_Cacheclass in theredis-cache/includes/object-cache.phpfile:#[AllowDynamicProperties]
class WP_Object_Cache {
...
}Forum: Plugins
In reply to: [YML for Yandex Market] Load texdomain error@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 должна решиться (вроде и мелочь, а логи знатно забивает). - With the plugin disabled,