Skip to content

Conversation

dshanske
Copy link
Collaborator

@dshanske dshanske commented Jul 5, 2025

Addresses #527

Moved the meta settings to receiver and sender functions, consistent with early design, as they aren't block specific any longer. It sets up a metabox that will appear only in the Classic Editor and Classic Press.

@dshanske dshanske requested a review from pfefferle July 5, 2025 19:36
@@ -36,6 +37,41 @@ public static function init() {

// remote delete posts
add_action( 'webmention_delete', array( static::class, 'send_webmentions' ) );
\add_action( 'init', array( self::class, 'register_postmeta' ), 11 );
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
\add_action( 'init', array( self::class, 'register_postmeta' ), 11 );
self::register_postmeta();

I think the init function is already triggered on init?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense. I moved the code there and wasn't thinking.

/**
* Register post meta
*/
public static function register_postmeta() {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public static function register_postmeta() {
public static function register_meta() {

The other function is called register_meta I think we should be consistent. I have no preference which one to use.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same, moved it around...fine with changing it.

@pfefferle
Copy link
Owner

Thanks @dshanske ! I have some inline feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants