See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| <?php | |
| /** | |
| * Add data attributes to the query block to describe the block query. | |
| * | |
| * @param string $block_content Default query content. | |
| * @param array $block Parsed block. | |
| * @return string | |
| */ | |
| function query_render_block( $block_content, $block ) { | |
| if ( 'core/query' === $block['blockName'] ) { |
| new Swipe(document.getElementById("gallery"), function(event, direction) { | |
| event.preventDefault(); | |
| switch (direction) { | |
| case "up": | |
| // Handle Swipe Up | |
| break; | |
| case "down": | |
| // Handle Swipe Down | |
| break; |