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

Switcher: Only allow type conversions based on kinds #55

Merged
merged 1 commit into from
Feb 10, 2017

Conversation

mcsf
Copy link
Contributor

@mcsf mcsf commented Feb 10, 2017

After #43, the switcher menu was available for any type of block, notably images, which made no sense. This addresses that by paving the way for kind-based switcher controls. With this PR:

  • Paragraphs, headings and quotes are text, hence they are convertible amongst that kind.
  • Images are only images and, for now, offer no switching.

screen shot 2017-02-10 at 14 25 33

screen shot 2017-02-10 at 14 25 40

- Paragraphs, headings and quotes are _text_, hence they are convertible
  amongst that kind.

- Images are only _images_ and, for now, offer no switching.
@mcsf mcsf added [Type] Bug An existing feature does not function as intended [Type] Enhancement A suggestion for improvement. UI Prototype labels Feb 10, 2017
@mcsf mcsf requested a review from mtias February 10, 2017 14:28
@mcsf mcsf merged commit 35db542 into master Feb 10, 2017
@mcsf mcsf deleted the fix/switcher-menu-dont-convert-images branch February 10, 2017 18:40
hypest pushed a commit that referenced this pull request Nov 2, 2018
…-cursor-command

Add a new `returnHTMLWithCursor` command & returning event to the editor
ntwb added a commit that referenced this pull request May 31, 2020
* Add stylelint 6.4.x rules
* Bump minimum stylelint version to 6.4.2
ockham added a commit that referenced this pull request Dec 3, 2021
Unit tests are currently failing on `trunk` (when used with a current snapshot of the WordPress svn or git repo).

Specifically: `Block_Fixture_Test::test_kses_doesnt_change_fixtures` fails for datasets #54 and #55.

Reading WordPress/wordpress-develop#1998, I believe that the reason might be that our KSES routines are verifying that the specified port matches the one of the local install. And since our tests normally run `localhost:8889`, I'm updating the relevant test fixtures (from previously `8888`) to reflect that.
noisysocks pushed a commit that referenced this pull request Dec 6, 2021
Unit tests are currently failing on `trunk` (when used with a current snapshot of the WordPress svn or git repo).

Specifically: `Block_Fixture_Test::test_kses_doesnt_change_fixtures` fails for datasets #54 and #55.

Reading WordPress/wordpress-develop#1998, I believe that the reason might be that our KSES routines are verifying that the specified port matches the one of the local install. And since our tests normally run `localhost:8889`, I'm updating the relevant test fixtures (from previously `8888`) to reflect that.
youknowriad pushed a commit that referenced this pull request Dec 8, 2021
Unit tests are currently failing on `trunk` (when used with a current snapshot of the WordPress svn or git repo).

Specifically: `Block_Fixture_Test::test_kses_doesnt_change_fixtures` fails for datasets #54 and #55.

Reading WordPress/wordpress-develop#1998, I believe that the reason might be that our KSES routines are verifying that the specified port matches the one of the local install. And since our tests normally run `localhost:8889`, I'm updating the relevant test fixtures (from previously `8888`) to reflect that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug An existing feature does not function as intended [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants