-
-
Notifications
You must be signed in to change notification settings - Fork 30
Add classic editor fallback for webmention post settings #528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@@ -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 ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\add_action( 'init', array( self::class, 'register_postmeta' ), 11 ); | |
self::register_postmeta(); |
I think the init
function is already triggered on init?
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
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.
Thanks @dshanske ! I have some inline feedback! |
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.