Skip to content

Conversation

pfefferle
Copy link
Owner

fix #524

@pfefferle pfefferle requested a review from Copilot June 20, 2025 20:49
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a new option to disable outgoing Webmentions while updating the existing incoming Webmentions option. The changes include updating the editor plugin to provide both incoming and outgoing controls, adjusting the meta key handling in PHP, and augmenting the block registration to support the new meta field.

  • Updated editor plugin UI and asset bundle for handling two webmention options.
  • Modified server-side meta checks and post meta registration to account for outgoing webmentions.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/editor-plugin/plugin.js Updated CheckboxControl labels and added a new checkbox for outgoing.
includes/class-webmention.php Extended meta check to include outgoing webmention disable key.
includes/class-block.php Registered new meta for outgoing webmentions.
build/editor-plugin/plugin.js Updated bundled plugin code to integrate new checkbox controls.
build/editor-plugin/plugin.asset.php Updated asset version to reflect the changes.
Comments suppressed due to low confidence (1)

src/editor-plugin/plugin.js:23

  • [nitpick] The label 'Disable incoming' might benefit from additional clarity. Consider renaming it to 'Disable incoming webmentions' to clearly differentiate it from the 'Disable outgoing' option.
				label={ __( 'Disable incoming', 'webmention' ) }

@dshanske
Copy link
Collaborator

Want me to take a look?

@pfefferle
Copy link
Owner Author

sure!

@pfefferle
Copy link
Owner Author

@dshanske have you had the chance to check the PR?

@dshanske
Copy link
Collaborator

I planned to look this coming weekend.

@dshanske
Copy link
Collaborator

Requesting a Classic Editor fallback for this feature.

@pfefferle
Copy link
Owner Author

@dshanske is that a requirement for this PR?

@dshanske
Copy link
Collaborator

dshanske commented Jul 1, 2025

In my opinion we should maintain compatibility for people who don't use the block editor.

@pfefferle
Copy link
Owner Author

It was not an argument against it, simply the question if it should be part of this PR!?

I am not very familar with the classic editor, so maybe you can give it a try in a separate PR?

@dshanske dshanske self-requested a review July 5, 2025 16:33
@dshanske
Copy link
Collaborator

dshanske commented Jul 5, 2025

Looks good to me. Will do a separate PR to add backcompat https://make.wordpress.org/core/2018/11/07/meta-box-compatibility-flags/

@dshanske dshanske merged commit e856ba3 into main Jul 5, 2025
11 checks passed
@dshanske dshanske deleted the feature/disable-pings branch July 5, 2025 16:35
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.

Make Disable Webmentions checkbox also disable _sending_ webmentions?
2 participants