Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Social Link: Fix server-side rendering for legacy format (#20074)
Fixes a regression introduced in #19887. While changing the logic in `register_block_core_social_link` to consume the block type's `block.json` and switch to the `$service` attribute name, I broke the handling of the legacy format for social links. Old format: <!-- wp:social-link-wordpress {"url":"foo"} /--> New format: <!-- wp:social-link {"service":"wordpress","url":"foo"} /--> This fixes the handling of legacy social links by providing the adequate attribute default for each `$service`.
- Loading branch information