AdvancedCustomFields / AdvancedCustomFields/acf

Size limitations on media not removed when media overlay closed.

Open
#376 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
945
Forks
197
PR merge metrics
No merged PRs in 30d

Description

I posted the bug report on the ACF forum last time, but I couldn't get a response, so I'll make the same post here.

When the second and subsequent posts, the featured image is affected by the size limit of the image field.

Environment

  • WordPress 5.4.2
  • Advanced Custom Fields PRO 5.9.0
  • Firefox
    I’ve seen it reproduce in Chrome and Safari as well.

Prerequisites

  • image field: Minimum width: 300px, height: 300px, Maximum width: 300px, height: 300px
  • The featured image I want to register is a different size. This time 1200px * 800px.
  • Added 2 images to Media Library: 300px * 300px, 1200px * 800px

Point!
The bug will not be reproduced the first time you register a post.

Steps to reproduce
1-1. Create 1st post
1-2. Add an image to custom field
1-3. Add a featured image
1-4. Click publish button
We won’t reproduce it here.

2-1. Create 2nd post
2-2. Add an image to custom field
2-3. Click to add a featured image, 1200px * 800px, you’ll find the message: “Restricted 1200_800.png
Image width must not exceed 300px.
Image height must not exceed 300px.”

3-1. Create 3rd post
3-2 Add a featured image
3-3 Click to add an image to custom field, you’ll find No size limit

I uploaded the video to YouTube.

Please let me know the solution for this.
Thank you.

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.

Research direction

Reproduce the issue in WordPress 5.4.2 with ACF PRO 5.9.0 using the listed image-field limits and the three-post sequence. Start by examining how the media overlay applies and removes image-size constraints when it opens and closes. Done means the featured-image picker is not constrained by the custom field after the overlay is closed, while the custom field still enforces its limits.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.