Skip to content

Commit

Permalink
More explicitly handle globallyEnabledBlockTypes param
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks committed May 24, 2018
1 parent 99ca557 commit d42964f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion editor/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -1713,7 +1713,9 @@ export function getBlockListSettings( state, uid ) {
*
* @return {string[]|boolean} Blocks that can be nested inside the block with the specified uid, or true/false to enable/disable all types.
*/
export function getSupportedBlocks( state, uid ) {
// Disable reason: We have to accept `globallyEnabledBlockTypes` so as to be backwards compatible
// eslint-disable-next-line no-unused-vars
export function getSupportedBlocks( state, uid, globallyEnabledBlockTypes ) {
deprecated( 'getSupportedBlocks', {
version: '3.1',
alternative: 'canInsertBlockType',
Expand Down

0 comments on commit d42964f

Please sign in to comment.