Opened 10 years ago
Closed 10 years ago
#34321 closed defect (bug) (fixed)
Embed service CSS does not load in src if WP_DEBUG is not set
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Embeds | Keywords: | has-patch |
Focuses: | Cc: |
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_styles
requires a check for $develop_src - the
WP_DEBUG
default 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.
SCRIPT_DEBUG
works for scripts and styles and should be used accordingly. So let's replace theWP_DEBUG
check withSCRIPT_DEBUG
inprint_oembed_embed_styles()
.