#58734 closed defect (bug) (fixed)
Duotone filter not reflected on the frontend
Reported by: | vivekawsm | Owned by: | isabel_brison |
---|---|---|---|
Milestone: | 6.3 | Priority: | high |
Severity: | critical | Version: | 6.3 |
Component: | Editor | Keywords: | has-patch has-testing-info |
Focuses: | Cc: |
Description
Description
When adding duotone filter to an image, it is properly reflected on the backend, but when we preview it from the frontend, it is not reflected. Also adding an alignment option will cause the UI elements to be out of place.
Environment
- WordPress: 6.3-beta3-56143
- PHP: 7.4.33
- Server: TasteWP-S1 Official/3.0.0
- Database: mysqli (Server: 8.0.32-0ubuntu0.20.04.2 / Client: mysqlnd 7.4.33)
- Browser: Chrome 114.0.0.0 (Windows 10/11)
- Theme: Twenty Twenty 2.2
- MU-Plugins: None activated
- Plugins:
- WordPress Beta Tester 3.5.0
Steps to reproduce:
Activate Twenty Twenty theme.
Insert image
Apply duotone filter and alignment
View on frontend
Expected result:
Duotone filter and proper alignment should be reflected in the frontend
Actual result:
The duotone filter and alignment is not reflected properly.
Attachments (3)
Change History (20)
#1
@
19 months ago
- Component changed from Bundled Theme to Editor
- Milestone changed from Awaiting Review to 6.3
- Summary changed from Twenty Twenty Theme: Duotone filter not reflected on the frontend to Duotone filter not reflected on the frontend
- Version set to trunk
This ticket was mentioned in Slack in #core by sabernhardt. View the logs.
19 months ago
This ticket was mentioned in Slack in #core-editor by costdev. View the logs.
19 months ago
#7
@
19 months ago
In my testing, I am seeing the SVG output AFTER the html element. I believe this is related to the fact the classic themes, render blocks on the fly. Where as block themes render block before any HTML is output.
Related discussion. #49927.
This ticket was mentioned in PR #4839 on WordPress/wordpress-develop by @ajlende.
19 months ago
#8
- Keywords has-patch added; needs-patch removed
The style engine runs before blocks get rendered in classic themes, and duotone queues up styles while blocks are rendered, so the styles never get output on the page.
I've fixed it in this patch by generating the duotone styles again in wp_footer
for classic themes.
Trac ticket: https://core.trac.wordpress.org/ticket/58734
#9
@
19 months ago
- Keywords needs-patch added; has-patch removed
I should note that PR #4839 is only fixing the duotone part and doesn't attempt to fix the alignment issue.
This ticket was mentioned in Slack in #core by spacedmonkey. View the logs.
19 months ago
#11
@
19 months ago
Test
Environment
Result
Backend: https://prnt.sc/EXGf9WYx-pqd
Frontend: https://prnt.sc/dDoGpFI1_22b
So, at WordPress: 6.3-beta3-56168 Duotone is also working from this environment.
#12
@
19 months ago
- Keywords has-patch has-testing-info added; needs-patch removed
Test Report
This report validates that the indicated patch addresses the issue.
Patch tested: https://patch-diff.githubusercontent.com/raw/WordPress/wordpress-develop/pull/4839.diff
Environment
- WordPress: 6.3-beta4-56216
- PHP: 7.4.33
- Server: Apache/2.4.56 (Ubuntu)
- Database: mysqli (Server: 5.7.41-0ubuntu0.18.04.1 / Client: mysqlnd 7.4.33)
- Browser: Chrome 114.0.0.0 (Windows 10/11)
- Theme: Twenty Twenty-One 1.8
- MU-Plugins: None activated.
- Plugins:
- WordPress Beta Tester 3.5.2
Actual Results
- Before the patch: Duotone did not work on the frontend for Site Logo, Post Featured Image, Image, Gallery or Cover blocks. Issue reproduced.
- After the patch: Duotone works on the frontend for Site Logo, Post Featured Image, Image, Gallery and Cover blocks. Issue resolved with the patch.
Additional Notes
- Duotone continues to work fine for these blocks when using a block theme (in this case, Twenty-Twenty Three).
19 months ago
#13
Does this need to be fixed in Gutenberg too?
Yeah, we'll want to port this change and #4831 back into the plugin once they're merged here to keep things in sync.
#14
@
19 months ago
- Owner set to isabel_brison
- Resolution set to fixed
- Status changed from new to closed
In 56225:
#16
@
18 months ago
Hi, you have actually broke the duotone functionality. Today came out the update (WordPress 6.3) which broke duotone.
@wildworks commented on PR #4839:
16 months ago
#17
This commit doesn't seem to have been backported to Gutenberg, so I've submitted the PR below.
Backend