WordPress 6.3 Image Features

Open
#739 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
php, wordpress
Domain
frontend, web-dev

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

needs: grooming priority: medium type: enhancement

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:

  1. Install WP 6.3
  2. Set an aspect ratio on an image block in Gutenberg.
  3. Add a large image in Gutenberg to trigger the fetchpriority attribute.
  4. 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 picture tag. You will also see the other two attributes moved from the img to the picture tag.

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from wp-media/imagify-plugin

All issues in wp-media/imagify-plugin

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.