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
| class FoldingUL extends HTMLUListElement { | |
| constructor() { | |
| super(); | |
| const self = this; | |
| document.addEventListener('DOMContentLoaded', () => { | |
| self.init(); | |
| }); | |
| } |
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
| <?php | |
| /** | |
| * Each package that requires initialization will have a configuration file like this. | |
| * The Configuration should implement at least one configuration interface. | |
| */ | |
| namespace Automattic\Jetpack\Connection; | |
| use Automattic\Config\OnPluginDeactivation; | |
| use Automattic\Config\OnPluginsLoaded; |
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
| <?php | |
| /* | |
| Plugin Name: Jetpack Connection UI Activator | |
| Author: Automattic | |
| Version: 0.2 | |
| */ | |
| add_action( 'plugins_loaded', function() { | |
| if ( class_exists( '\Automattic\Jetpack\ConnectionUI\Admin' ) ) { | |
| \Automattic\Jetpack\ConnectionUI\Admin::init(); |
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
| <?php | |
| /** | |
| * Plugin Name: Jetpack IDC customizer | |
| * Description: Sample customizer of the Jetpack IDC screen. | |
| * Version: 1.0 | |
| * Author: Automattic | |
| * Author URI: https://automattic.com/ | |
| * Text Domain: jetpack | |
| * | |
| * @package automattic/jetpack |
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
| class TreeSet { | |
| root = null; | |
| insert(element, node = null) { | |
| if (this.root === null) { | |
| this.root = { val: element, left: null, right: null }; | |
| return true; | |
| } | |
| if (node === null) { |
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
| <?php | |
| /* | |
| Plugin Name: Jetpack IDC Multi-Domain | |
| Author: Automattic | |
| Version: 0.1 | |
| */ | |
| add_filter( 'jetpack_sync_home_url', function() { | |
| return 'https://example.org'; | |
| } ); |