This file contains 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
diff --git a/lib/compat.php b/lib/compat.php | |
index 5941bbb1f2..c0e7150384 100644 | |
--- a/lib/compat.php | |
+++ b/lib/compat.php | |
@@ -640,6 +640,69 @@ function gutenberg_output_html_nav_menu_item( $item_output, $item, $depth, $args | |
} | |
add_filter( 'walker_nav_menu_start_el', 'gutenberg_output_html_nav_menu_item', 10, 4 ); | |
+function gutenberg_capture_menu_items( $menu_items, $args ) { | |
+ $args->menu_items = $menu_items; |
This file contains 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
<!-- wp:navigation --> | |
<nav class="wp-block-navigation"> | |
<div role="list"> | |
<!-- wp:link --> | |
<div class="wp-block-link" role="listitem"> | |
<a href="/">Home</a> | |
<div class="wp-block-link__submenu" role="list"> | |
<!-- wp:link --> | |
<div class="wp-block-link" role="listitem"> | |
<a href="/contact-us">Contact Us</a> |
This file contains 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
diff --git a/packages/block-library/src/navigation-menu-item/save.js b/packages/block-library/src/navigation-menu-item/save.js | |
index 536d2f286..86b334099 100644 | |
--- a/packages/block-library/src/navigation-menu-item/save.js | |
+++ b/packages/block-library/src/navigation-menu-item/save.js | |
@@ -5,7 +5,7 @@ import { | |
InnerBlocks, | |
} from '@wordpress/block-editor'; | |
-export default function save( { attributes/*, innerBlocks*/ } ) { | |
+export default function save( { attributes, innerBlocks } ) { |
This file contains 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
( function() { | |
const { registerBlockType } = wp.blocks; | |
const { createElement: el } = wp.element; | |
const { InnerBlocks } = wp.blocks; | |
registerBlockType( 'acme/product', { | |
title: 'Product', | |
icon: 'carrot', | |
category: 'common', |
This file contains 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
#!/bin/bash | |
# A little script to remind you to look away from your screen every so often. | |
# | |
# To install: | |
# 1. Save this script somewhere | |
# 2. Make the script executable: chmod +x /path/to/the/script.sh | |
# 3. crontab -e | |
# 4. Add this entry: */20 9-17 * * * /path/to/the/script.sh |
This file contains 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
😀 GRINNING FACE | |
😁 GRINNING FACE WITH SMILING EYES | |
😂 FACE WITH TEARS OF JOY | |
😃 SMILING FACE WITH OPEN MOUTH | |
😄 SMILING FACE WITH OPEN MOUTH AND SMILING EYES | |
😅 SMILING FACE WITH OPEN MOUTH AND COLD SWEAT | |
😆 SMILING FACE WITH OPEN MOUTH AND TIGHTLY-CLOSED EYES | |
😉 WINKING FACE | |
😊 SMILING FACE WITH SMILING EYES | |
😋 FACE SAVOURING DELICIOUS FOOD |