Skip to content

Gallery captions cannot be added or edited (plugin only) #28989

Closed

Description

@mrfoxtalbot

Description

Adding or editing a caption on the gallery block does not seem to work with Version 9.9.2 of the plugin.

Step-by-step reproduction instructions

  1. Add a gallery or edit an existing gallery.
  2. Try to edit the caption
  3. It will not let you edit it.

WordPress information

  • WordPress 5.6.1
  • Gutenberg Version 9.9.2
  • Are all plugins except Gutenberg deactivated? Yes
  • Are you using a default theme ? Yes

This happens both on WordPress.com simple sites and on self hosted sites.

Deactivating the Gutenberg plugin solves the issue.

Screenshots

no-caption-edit

Activity

  1. paaljoachim commented on Feb 14, 2021

    @paaljoachim
    Contributor

    Hi @mrfoxtalbot Alvaro

    I just tested with WP 5.6.1 and the Gutenberg plugin 9.9.2 active.
    Premade captions can be clicked into. When no caption is present one can not click into the caption area (as you are showing).

    Btw I also checked the next version of the Gutenberg plugin 10.0 RC and the same problem is also located there.

    @youknowriad


    Btw

    The gallery is being rebuilt with using inner Image blocks in this PR:
    Gallery: Refactor as wrapper around core image blocks
    #25940

    There will soon be a call for testing.

  2. added
    [Block] Gallery
    [Type] Bug
    on Feb 14, 2021
  3. mrfoxtalbot commented on Feb 14, 2021

    @mrfoxtalbot
    Author

    That is odd, I was unable to edit existing captions either. I was able to reproduce this consistently on a self-hosted and on a wp.com free site. Image blocks are working correctly, though. Are there any chances you were perhaps editing an existing caption on an image block instead?

  4. aleone89 commented on Feb 14, 2021

    @aleone89

    Hello, this has been reported in the forums here: https://wordpress.com/forums/topic/have-lost-the-ability-to-add-update-captions-on-portfolio-thumbnails/

    I was able to consistently replicate this on a test simple site and on the users site.

  5. paaljoachim commented on Feb 14, 2021

    @paaljoachim
    Contributor

    @mrfoxtalbot Alvaro

    What I mean is this:
    I add a Gallery block.
    Click the "Media Library" button to Create gallery.
    Select a few images. Then click the button to "Create a new gallery".
    In the Edit gallery screen I can add captions to any image. Let's say that I added 4 images to the gallery. In the Edit gallery screen I add a caption to two of these images. Then click "Insert gallery" and end up back in Gutenberg design/layout screen.

    Here I have clicked into the first image and the second image caption fields. Caption toolbar is seen. I am though not able to click into the caption field of the two other images that do not contain a caption. I am also to add a gallery caption.

    Gallery-captions-5-6-1-GB-plugin.mp4

    Testing with WP 5.7 beta 2 and Gutenberg plugin 10.0 RC.

    The same problem noticed in WP 5.6.1 is also present in WP 5.7 beta 2.

  6. added
    Backport to WP Minor Release
    [Type] Regression
    on Feb 14, 2021
  7. self-assigned this
    on Feb 14, 2021
  8. glendaviesnz commented on Feb 14, 2021

    @glendaviesnz
    Contributor

    looks like it might be related to this change - #27312. Will take a closer look and try and get a fix PR sorted.

  9. added
    [Status] In Progress
    on Feb 14, 2021
  10. glendaviesnz commented on Feb 14, 2021

    @glendaviesnz
    Contributor

    Potential fix at #28992

  11. added and removed
    Backport to WP Minor Release
    on Feb 14, 2021
  12. geekinthegirl commented on Feb 15, 2021

    @geekinthegirl

    Hi there!

    Another instance of this just came up: editing captions via the Media Library for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Block] Gallery[Status] In Progress[Type] Bug[Type] Regression

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions