[wp-trac] [WordPress Trac] #30878: WP editor and CSS classname conflict
WordPress Trac
noreply at wordpress.org
Thu Jan 1 12:21:20 UTC 2015
#30878: WP editor and CSS classname conflict
--------------------------+-----------------------------
Reporter: shazdeh | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 4.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
When wp_editor function is used on the front end it also loads wp-
includes/css/media-views.min.css file, this stylesheet adds some styles
for .attachment classname and so breaks attachment pages in WordPress
where .attachment is a body class. Here's an example of the issue seen on
the Twenty Fifteen theme: http://grab.by/DmPC.
To replicate the issue, please edit the image.php file inside Twenty
Fifteen and simply call the wp_editor function somewhere in it.
Since the .attachment classname is very common and the issue is possible
to arise in many different themes, felt it's a bug in WP itself and not
the theme.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30878>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list