[wp-trac] [WordPress Trac] #29159: user-agent checking is removing visual editor in function user_can_richedit
WordPress Trac
noreply at wordpress.org
Fri Aug 8 23:54:27 UTC 2014
#29159: user-agent checking is removing visual editor in function user_can_richedit
--------------------------+-----------------------------
Reporter: vmuryginIB | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.9.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
user-agent checking is removing visual editor in function
user_can_richedit. It took us many days to find a problem, which is
described here: http://www.benjaminhorn.se/code/wordpress-visual-editor-
not-visible-because-of-user-agent-sniffing/
It is not sensible to use user-agent as a check whether to show visual
editor. Hopefully this check can be amended or removed in future WP
versions.
There are various hosting environments where this check fails. Plus you
would constantly need to manually add new strings over time.
We need to write plugins or theme hacks to circumvent this problem (that
is after spending days of struggling to pinpoint the problem).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29159>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list