WordPress 6.3 Image Features
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
Research direction
Start by reproducing the issue with WordPress 6.3 and a Gutenberg Image block, then inspect the generated picture and img markup. Review PR #738 alongside the reproduction steps. Done means the aspect ratio, fetchpriority, and decoding attributes remain on the img tag in the saved post output.
Written by the indexing model from the issue text.
Description
Describe the bug
WordPress 6.3 adds a new fetchpriority attribute as well as aspect ratio controls in Image blocks. As of now, aspect ratio is controlled via inline css on the img tag itself, so it needs to be checked for when creating the picture tag.
Likewise, both the fetchpriority and decoding attributes need to be left on the img tag and not moved to the picture tag.
To Reproduce
Steps to reproduce the behavior:
- Install WP 6.3
- Set an aspect ratio on an image block in Gutenberg.
- Add a large image in Gutenberg to trigger the
fetchpriorityattribute. - Save post. View on front end, inspect the image block. You will see the aspect ratio doesn't work as it has been moved to the
picturetag. You will also see the other two attributes moved from theimgto thepicturetag.
Expected behavior
All 3 elements need to remain in the img tag.
Additional context
PR #738 created to fix.
- Dominant language
- PHP
- Stars
- 82
- Forks
- 31
- Avg merge
- 5d 10h
- Merged PRs (30d)
- 9
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from wp-media/imagify-plugin
-
sanitizeContext() sanitizes nothing: a string literal is passed to .replace() instead of a RegExp Openpriority: low severity: minor type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
wp-media/imagify-plugin#1263 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
wp-media/imagify-plugin#1272 ·
-
devops priority: medium type: enhancement
Difficulty 5/5 Over a week Newbie friendliness 48/100
wp-media/imagify-plugin#1268 ·
-
devops priority: low type: bug
Difficulty 4/5 3-5 days Newbie friendliness 68/100
wp-media/imagify-plugin#1264 ·
-
priority: low
Difficulty 4/5 3-5 days Newbie friendliness 42/100
wp-media/imagify-plugin#1260 ·
All issues in wp-media/imagify-plugin
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getgrav/grav-plugin-api#45 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RSS-Bridge/rss-bridge#5098 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
phingofficial/phing#2025 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
silverstripe/developer-docs#911 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100