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

Allow connecting "url" and "title" attributes of the Image block to custom fields. #53488

Closed
wants to merge 5 commits into from

Commits on Aug 9, 2023

  1. Configuration menu
    Copy the full SHA
    75ae849 View commit details
    Browse the repository at this point in the history
  2. Expanded block connections functionality

    The block connections concept received a major overhaul. Now, blocks can be connected to custom fields and future data sources. This works in a 3-step process:
    - fetching connected block attributes
    - collecting values from connected sources,
    - and finally, updating the block's HTML with these values.
    
    A new helper function called 'gutenberg_render_block_with_connection_value' is introduced which replaces either the whole HTML tag or a specific attribute with the connection value, based on the source and configuration parameters.
    
    Also, adjusted the behavior in block-editor's custom fields when an attribute's value is empty. Instead of setting it as undefined, it is now set as an empty string, ensuring smoother handling.
    michalczaplinski committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    4b7e904 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2023

  1. Configuration menu
    Copy the full SHA
    e75d7ef View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7eeb729 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2023

  1. Configuration menu
    Copy the full SHA
    37ed1b6 View commit details
    Browse the repository at this point in the history