[wp-trac] [WordPress Trac] #34565: Warning after change theme
WordPress Trac
noreply at wordpress.org
Wed Nov 4 12:45:00 UTC 2015
#34565: Warning after change theme
-----------------------------------+------------------------------
Reporter: sebastian.pisula | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 3.4
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion | Focuses:
-----------------------------------+------------------------------
Comment (by bobbingwide):
I was able to reproduce the problem by switching to a theme that produced
deprecated messages.
{{{
Notice: The called constructor method for WP_Widget is deprecated since
version 4.3.0! Use
__construct()
instead. in C:\apache\htdocs\wordpress\wp-includes\functions.php on line
3457
}}}
Another way to achieve it was to implement hooks to the filters invoked
during the display(): 'load_textdomain', 'gettext' and use the functions
in these hooks. In my case I simply traced the hook invocation.
The alternative solution, pre-translate, avoids these problems.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34565#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list