#22644 closed defect (bug) (fixed)
wp_editor() on front end adds stylesheet to page
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Editor | Version: | 3.5 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
Seems wp_editor is adding a stylesheet to posts when inserted on front end. These styles override theme styles for .button ++
<link rel='stylesheet' id='buttons-css' href='http://mysite.com/themename/wp-includes/css/buttons.min.css?ver=3.5-RC2' type='text/css' media='all' />
Attachments (3)
Change History (11)
- Milestone changed from Awaiting Review to 3.5
- Owner set to helenyhou
- Status changed from new to assigned
- Keywords has-patch added
Something else, as presented in IRC :) A container/scoping class, let's say .wp-core-ui. So, body.wp-core-ui for the admin, .wp-core-ui on wrappers for things that can be used outside the admin itself but use styling provided by core (WP_Editor, media).
Koop is doing an extra check for any other places where we may need the class, and any other realizations are more than welcome. 22644.diff as a start, though.
koopersmith — 6 months ago
comment:3
koopersmith — 6 months ago
- Keywords commit added
Added a bit to make sure .wp-core-ui is always set in new media. Ready to go.
comment:4
koopersmith — 6 months ago
- Keywords commit removed
We need more! setup-config, install, upgrade, media-upload, and customize all need love.
koopersmith — 6 months ago
comment:5
koopersmith — 6 months ago
This should cover just about everything.
ack --php '<body'
comment:6
koopersmith — 6 months ago
Also updates the .welcome-button to use the .button-hero size instead.
Couldn't see any issues with 22644.3.diff. Tested also on a page template for Twenty Eleven with:
<?php wp_editor('Test content', 'frontend_editor'); ?>
<input type="button" class="button" value="Button" /><br/>
<a href="#" class="button">Link</a>

We knew this bug report would come eventually.
The plan of attack that comes to mind for me:
I know koopersmith and helenyhou have spoken — what's the verdict?