Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom attachment meta fields not displaying when new image is uploaded #857

Open
andybaughman1 opened this issue Jun 5, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@andybaughman1
Copy link

Description of the bug

WordPress version 6.2.2
Fieldmanager version 1.5.0

After uploading an image using a Fieldmanager media field, custom attachment meta fields do not initially display.

Steps To Reproduce

  1. Register custom attachment meta field(s) using apply_filters( 'attachment_fields_to_edit', array $form_fields, WP_Post $post )
  2. Register a new Fieldmanager media field using Fieldmanager_Media() on posts
  3. Upload new image to a post using this Fieldmanager media field
  4. Note the missing meta field(s) in step 1 after upload
  5. Click on a different media item in the Media Library, then click back on the newly uploaded image. The meta fields should now appear, but did not appear on the initial upload.

Additional Information

No response

@andybaughman1 andybaughman1 added the bug Something isn't working label Jun 5, 2023
@mboynes
Copy link
Contributor

mboynes commented Jun 14, 2023

Hey @andybaughman1, thanks for reporting this and for your steps to reproduce! This may be an issue in WordPress core, have you searched through Trac and/or GitHub?

@andybaughman1
Copy link
Author

Hi @mboynes - I contacted WordPress VIP support about the issue and they asked that I submit a ticket with Fieldmanager. From what I found in my testing, this is only an issue with our media fields setup through Fieldmanager.

There was a related bug in Trac (https://core.trac.wordpress.org/ticket/58051), but was resolved in WP 6.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants