Skip to content

Framework: Remove deprecations slated for 2.5.0 removal#5833

Merged
aduth merged 2 commits intomasterfrom
remove/2-5-deprecations
Mar 28, 2018
Merged

Framework: Remove deprecations slated for 2.5.0 removal#5833
aduth merged 2 commits intomasterfrom
remove/2-5-deprecations

Conversation

@aduth
Copy link
Copy Markdown
Member

@aduth aduth commented Mar 28, 2018

This pull request seeks to remove deprecations slated for removal in the upcoming 2.5.0 release.

Specifically, this includes:

  • Returning raw HTML string from block save
  • wp.data.query

wp.blocks.Editable was slated for removal as well, but since the Editable API is still (mistakenly) documented on the Gutenberg handbook, I'm inclined to continue to push this to being removed in a future release.

This also updates a the unwrapped paragraph deprecation approach implemented in #4874 to correctly use RawHTML in the deprecated save. This issue became obvious with the removal thanks to existing fixture tests.

Testing instructions:

Verify that there are no regressions in impacted behavior, and importantly that no references to deprecated behaviors exist in core code.

@aduth aduth added the Framework Issues related to broader framework topics, especially as it relates to javascript label Mar 28, 2018
@aduth aduth added this to the 2.5 milestone Mar 28, 2018
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is key necessary here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is key necessary here?

Nope. Mistaken copy from the migrate function.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we change it in deprecated.md as well?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we change it in deprecated.md as well?

Yep. Added.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We still have an instance of string saving in the parser's unit test but I'm certain it's used at all.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We still have an instance of string saving in the parser's unit test but I'm certain it's used at all.

Technically it's not really a problem that a save returns a string, just that previously we would treat it as unescaped, and now it's subject to React render serialization (now equivalent to returning a string from a component).

@aduth aduth force-pushed the remove/2-5-deprecations branch from bd63414 to dd0b2e1 Compare March 28, 2018 12:22
Copy link
Copy Markdown
Contributor

@youknowriad youknowriad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@aduth aduth merged commit b6b826c into master Mar 28, 2018
@aduth aduth deleted the remove/2-5-deprecations branch March 28, 2018 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Framework Issues related to broader framework topics, especially as it relates to javascript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants