Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Image url and size #1

Description

@vonloxx

Looking at code here:
https://github.com/front/g-section-row/blob/master/src/section-row/index.js#L242-L247
I think there's going to be issues:

  • According to WP API reference (https://developer.wordpress.org/rest-api/reference/media/), there's no sizes property at media object anymore. It's located at media_details property. So it should get from media.media_details.sizes.large.source_url.
  • Still, I think the block shouldn't get a specific size image. Should get the original and/or add a sidebar option to let the user choose. Not sure how it work in WP but in Drupal the image styles/sizes can be altered and, for example the large size option may not exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions