[wp-trac] [WordPress Trac] #45638: Comparison of post_type of post.php
WordPress Trac
noreply at wordpress.org
Fri Dec 14 23:41:45 UTC 2018
#45638: Comparison of post_type of post.php
-------------------------------+------------------------------
Reporter: tmatsuur | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 5.0.1
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------------+------------------------------
Comment (by tmatsuur):
Replying to [comment:1 iandunn]:
> Hi @tmatsuur , does that still happen if you temporarily disable
plugins, and switch to one of the default themes?
>
> It sounds like `$_POST['post_type']` is being translated, which I don't
think should ever happen. I don't see any instances in the Core code of
doing that.
Thank you for your comment.
In this case, I noticed that my own plug-in was doing bad things.
The cause is as follows.
1.In the widget of the plugin, I set the translated post type to the value
of the `value` attribute.
2.'post' translation was added for Block Editor.
3.Due to the combination of these conditions, this problem occurred.
I will update the problem plugin later.
Please close this issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45638#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list