Plugin Incompatibility
-
Hello! ??
It looks like this plugin modifies the return value of
get_the_date
regardless of the context in which it is called. This means it will conflict with any plugin that tries to get the date of a post, such as callingget_the_date('U', 1)
from within a plugin admin page.This was causing issues with Independent Analytics as well as WooCommerce. It should probably find a way to only target the function on singular pages by replacing
if ('enabled' === $options['jewish_date_post'] ) {
with
if (is_singular() && 'enabled' === $options['jewish_date_post'] ) {
to ensure it is for a singular.
Even so, I’m not sure this will be enough for all cases. A short code is probably more appropriate.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Plugin Incompatibility’ is closed to new replies.