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: ActivityPub Relay Mode | |
| * Description: Adds relay mode to the ActivityPub plugin to forward public activities to all followers. | |
| * Version: 1.0.0 | |
| * Author: Automattic | |
| * License: GPL-2.0-or-later | |
| * Requires Plugins: activitypub | |
| */ |
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: ActivityPub Comment Debug Logger | |
| * Description: Debug logger for ActivityPub comment creation flow from Mastodon to WordPress | |
| * Version: 1.0.0 | |
| * | |
| * @package activitypub | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) { |
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
| [06-Jul-2025 01:16:34 UTC] RFC 9421: 500 | |
| [06-Jul-2025 01:16:34 UTC] https://oisaur.com/inbox | |
| [06-Jul-2025 01:16:34 UTC] Array | |
| ( | |
| [method] => POST | |
| [timeout] => 100 | |
| [redirection] => 3 | |
| [httpversion] => 1.0 | |
| [user-agent] => WordPress/6.8; https://obietester.blog; ActivityPub | |
| [reject_unsafe_urls] => 1 |
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
| # Signature Base Example | |
| [30-Jun-2025 20:40:59 UTC] "@method": POST | |
| "@target-uri": https://wizard.casa/users/obietester/inbox | |
| "@authority": wizard.casa | |
| "created": 1751316059 | |
| "content-digest": SHA-256=:yCgSeoGiFo0lOX3rHxqYEfwAgMQneRWvRjBE0Dwoxes=: | |
| "@signature-params": ("@method" "@target-uri" "@authority" "created" "content-digest");created=1751316059;keyid="https://obietester.blog/?author=12082291#main-key";alg="rsa-v1_5-sha256" | |
| # WordPress request args | |
| [30-Jun-2025 20:33:09 UTC] Array |
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 | |
| function render_block( $attributes ) { | |
| do_shortcode( '[playlist type="podcast"]'); | |
| } | |
| function podcast_playlist( $output, $attributes, $instance ) { | |
| if ( 'podcast' !== $attributes['type'] ) { | |
| return $output; | |
| } |
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
| diff --git a/packages/block-editor/src/components/block-styles/index.js b/packages/block-editor/src/components/block-styles/index.js | |
| index 2485c73e9..ad77a6965 100644 | |
| --- a/packages/block-editor/src/components/block-styles/index.js | |
| +++ b/packages/block-editor/src/components/block-styles/index.js | |
| @@ -72,6 +72,7 @@ function BlockStyles( { | |
| block, | |
| onSwitch = noop, | |
| onHoverClassName = noop, | |
| + allBlocks, | |
| } ) { |
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
| var fetchGifs = _.debounce( function fetchGifs( search ) { | |
| if ( attributes.fetching ) { | |
| return; | |
| } | |
| props.setAttributes( { | |
| fetching: true, | |
| } ); | |
| $.getJSON( 'https://api.giphy.com/v1/gifs/search?api_key=Fswo3IBHt0TViFMN6zYgbYzSEb3sLx7I&limit=10&offset=0&rating=G&lang=en&q=' + encodeURI( search ) ) |
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 | |
| // Can be called whenever. | |
| function add_admin_notice( $code, $message, $type = 'error' ) { | |
| global $wp_admin_notices; | |
| if ( ! isset( $wp_admin_notices ) ) | |
| $wp_admin_notices = array(); | |
| $wp_admin_notices[] = array( |