This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Overwrite/bypass <iframe></iframe> height limit imposed by Wordpress | |
| * Original idea from bypass-iframe-height-limit plugin by Justin Carboneau | |
| * Adapted from original /wp-includes/js/wp-embed.js | |
| */ | |
| (function(window, document) { | |
| 'use strict'; | |
| var supportedBrowser = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // set alignment options for cover, video, and paragraph blocks. | |
| wp.hooks.addFilter( | |
| 'blocks.registerBlockType', | |
| 'hd-theme/hd-theme', | |
| function( settings, name ) { | |
| if ( name === 'core/cover' || name === 'core/video' || name === 'core/paragraph' || name === 'core/list' ) { | |
| return lodash.assign( {}, settings, { | |
| supports: lodash.assign( {}, settings.supports, { | |
| // allow support for full and wide alignment. | |
| align: ['full', 'wide'], |
OlderNewer