[wp-trac] [WordPress Trac] #60918: parse_blocks stopped returning content and text in attrs in 6.5
WordPress Trac
noreply at wordpress.org
Thu Apr 4 09:57:20 UTC 2024
#60918: parse_blocks stopped returning content and text in attrs in 6.5
---------------------------+-----------------------------
Reporter: olenakuzmenko | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 6.5
Severity: major | Keywords:
Focuses: |
---------------------------+-----------------------------
parse_blocks stopped returning content and text in attrs in 6.5
We are using wp-rest-blocks to process WordPress article in our system.
With version 6.5, there is a new issue discovered
[https://github.com/spacedmonkey/wp-rest-
blocks/issues/69](https://github.com/spacedmonkey/wp-rest-
blocks/issues/69)
Taking a look at it, parse_blocks method stopped returning text and
content for paragraphs/buttons/list items/probably other components as
well.
Example of what we receive for the paragraph now:
{{{
[10] => Array
(
[blockName] => core/paragraph
[attrs] => Array
(
)
[innerBlocks] => Array
(
)
[innerHTML] =>
<p>some <strong>another</strong> <em>paragraph</em> block with <a
href="https://jsonformatter.curiousconcept.com/">formatting</a>, a lot of
<mark style="background-color:#af1685;color:#e37bc7" class="has-inline-
color">formatting</mark>! </p>
[innerContent] => Array
(
[0] =>
<p>some <strong>another</strong> <em>paragraph</em> block with <a
href="https://jsonformatter.curiousconcept.com/">formatting</a>, a lot of
<mark style="background-color:#af1685;color:#e37bc7" class="has-inline-
color">formatting</mark>! </p>
)
)
}}}
What we expect to receive:
{{{
[10] => Array
(
[blockName] => core/paragraph
[attrs] => Array
(
[content] => some <strong>another</strong>
<em>paragraph</em> block with <a
href=\"https://jsonformatter.curiousconcept.com/\">formatting</a>, a lot
of <mark style=\"background-color:#af1685;color:#e37bc7\" class=\"has-
inline-color\">formatting</mark>!
)
[innerBlocks] => Array
(
)
[innerHTML] =>
<p>some <strong>another</strong> <em>paragraph</em> block with <a
href="https://jsonformatter.curiousconcept.com/">formatting</a>, a lot of
<mark style="background-color:#af1685;color:#e37bc7" class="has-inline-
color">formatting</mark>! </p>
[innerContent] => Array
(
[0] =>
<p>some <strong>another</strong> <em>paragraph</em> block with <a
href="https://jsonformatter.curiousconcept.com/">formatting</a>, a lot of
<mark style="background-color:#af1685;color:#e37bc7" class="has-inline-
color">formatting</mark>! </p>
)
)
}}}
I am putting a major severity on it, as it blocks completely our system.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60918>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list