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

Framework: Rename MediaPlaceholder onSelectUrl prop as onSelectURL #7982

Merged
merged 2 commits into from
Jul 17, 2018

Conversation

aduth
Copy link
Member

@aduth aduth commented Jul 16, 2018

This pull request seeks to effect new capitalization guidelines around abbreviations (#7670) toward an API freeze. It deprecates the onSelectUrl prop of the wp.editor.MediaPlaceholder component in favor of the corrected onSelectURL naming.

Testing instructions:

Verify that there are no regressions in the use of the media placeholder (e.g. audio or video block URL input).

Ensure that onSelectUrl prop works unaffected, but logs a deprecated warning.

@aduth aduth added the Framework Issues related to broader framework topics, especially as it relates to javascript label Jul 16, 2018
Copy link
Member

@gziolo gziolo left a comment

Choose a reason for hiding this comment

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

LGTM, we should also include deprecation note in the docs.

deprecated( 'MediaPlaceholder `onSelectUrl` prop', {
alternative: '`onSelectURL` prop',
plugin: 'Gutenberg',
version: 'v3.4',
Copy link
Member

Choose a reason for hiding this comment

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

3.5 to match with others? Whatever we decide 😄

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, let's go with 3.5.

@gziolo gziolo added this to the 3.3 milestone Jul 17, 2018
@aduth aduth force-pushed the rename/media-placeholder-on-select-url branch from 3c7bdaf to c078d55 Compare July 17, 2018 15:54
@aduth
Copy link
Member Author

aduth commented Jul 17, 2018

Added deprecated.md item and bumped to v3.5 in the rebased 6a7d8b7.

@aduth aduth merged commit c9bac70 into master Jul 17, 2018
@aduth aduth deleted the rename/media-placeholder-on-select-url branch July 17, 2018 18:22
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