[wp-trac] [WordPress Trac] #45227: Using "__" in a plugin's main file, outside of an action callback prevents post saving in the editor.
WordPress Trac
noreply at wordpress.org
Tue Oct 30 13:25:50 UTC 2018
#45227: Using "__" in a plugin's main file, outside of an action callback prevents
post saving in the editor.
--------------------------+------------------------------
Reporter: kmgalanakis | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: 5.0
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Changes (by swissspidy):
* component: Editor => I18N
* severity: critical => normal
Comment:
Sounds like a duplicate of #43869 to me.
It's not editor related though. You just happen to use a function way too
early because you execute something straight away before WordPress has
fully loaded. What are you trying to achieve that can't be done by hooking
into `init` or something?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45227#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list