gutenberg-mobile icon indicating copy to clipboard operation
gutenberg-mobile copied to clipboard

Renames hideBlockByCapability for clarity

Open guarani opened this issue 3 years ago • 0 comments

This PR renames hideBlockByCapability to showBlockByCapability since, if a block is passed into this method along with a true argument, the function's logic is to display the block (not hide it).

To test:

Run locally and verify if Jetpack blocks are still shown correctly according to their availability and their corresponding editor capability's value.

PR submission checklist:

  • [x] I have considered adding unit tests where possible.
  • [x] I have considered if this change warrants user-facing release notes more info and have added them to RELEASE-NOTES.txt if necessary.

guarani avatar Jan 19 '22 17:01 guarani