#48112 closed defect (bug) (fixed)
Undefined $type_attr for TwentyTwenty When A Custom Background is Set
| Reported by: | davidbaumwald | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.3 |
| Component: | Customize | Version: | 5.3 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
[46164] introduced a type attribute one the inline <style> tag when a custom background is defined in the Customizer. This produces a notice:
Notice: Undefined variable: type_attr in wp-includes\theme.php on line 1708
The notice is thrown inline in the render, making the <style> tag malformed and not used.
The attached patch moves the $type_attr assignment out of the conditional which is only evaluated in certain themes.
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)
Patch