Latest update breaks plugin
-
This new code (released today in 3.2) is causing critical errors when attempting to create emails. Having to disable all installs of this to resolve.
2023-02-08T17:00:47+00:00 CRITICAL Uncaught Error: Call to a member function getTimestamp() on bool in /home/SITENAME/wp-content/plugins/yaymail/includes/MailBuilder/Shortcodes.php:1290
} else { if ( is_string( $meta->get_data()['value'] ) ) { if ( is_numeric( strtotime( $meta->get_data()['value'] ) ) ) { $date = \DateTime::createFromFormat( 'Y-m-d', $meta->get_data()['value'] ); $shortcode[ $nameShorcode ] = date_i18n( wc_date_format(), $date->getTimestamp() ); } else { $shortcode[ $nameShorcode ] = nl2br( $meta->get_data()['value'] ); } } else { $shortcode[ $nameShorcode ] = $meta->get_data()['value']; } } }
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Latest update breaks plugin’ is closed to new replies.