Opened 11 years ago
Closed 11 years ago
#34321 closed defect (bug) (fixed)
Embed service CSS does not load in src if WP_DEBUG is not set
| Reported by: | peterwilsoncc | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.4 |
| Component: | Embeds | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
Running wordpress-develop.dev from the source directory does not load the CSS in the iframe is WP_DEBUG is not set to true.
Possible solutions:
- the condition in
print_oembed_embed_stylesrequires a check for $develop_src - the
WP_DEBUGdefault should be do a check similar toSCRIPT_DEBUG - new global:
STYLE_DEBUG
Attachments (1)
Change History (6)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
SCRIPT_DEBUGworks for scripts and styles and should be used accordingly. So let's replace theWP_DEBUGcheck withSCRIPT_DEBUGinprint_oembed_embed_styles().