[wp-trac] [WordPress Trac] #52117: hooks used in wp_mail suddenly stopped seeing constants after update.
WordPress Trac
noreply at wordpress.org
Mon Dec 21 03:21:44 UTC 2020
#52117: hooks used in wp_mail suddenly stopped seeing constants after update.
---------------------------+----------------------
Reporter: jmarshall9120 | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Mail | Version:
Severity: normal | Resolution: invalid
Keywords: | Focuses:
---------------------------+----------------------
Comment (by jmarshall9120):
@SergeyBiryukov - the SMTP_FROM constant is my constant from my config.php
file. It seems wp_mail is no longer seeing the constant's from the
config.php file. Is wp_mail not part of core? It is unrelated to any
plugin. wp_mail calls broke everywhere they were used in my theme
regardless of plugins. The only solution was to hardcode all my constants
into the functions.php files hooks for wp_mail.
again I posted the woocommerce stacktrace, because it clearly shows the
config.php has been specifically included. Stacktraces with a simple core
template are much less verbose.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52117#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list