janboddez / share-on-mastodon

Easily share WordPress posts on Mastodon.
https://jan.boddez.net/wordpress/share-on-mastodon
GNU General Public License v3.0
39 stars 5 forks source link

Use underscore prefixes for meta keys #123

Closed jsit closed 6 days ago

jsit commented 6 days ago

Using underscore prefixes for meta keys (e.g. _mastodon_permalink) will prevent these keys from showing up in the Custom Fields metabox. It would be nice not to have those in there, since they are not likely to be manually edited.

janboddez commented 6 days ago

_mastodon_permalink is definitely not something set by this plugin. (We use _share_on_mastodon_url, e.g., https://github.com/search?q=repo%3Ajanboddez%2Fshare-on-mastodon%20_share_on_mastodon_url&type=code.)

Other meta fields use underscored keys too, e.g., https://github.com/search?q=repo%3Ajanboddez%2Fshare-on-mastodon+get_post_meta&type=code.

jsit commented 6 days ago

Oh shoot, I'm so sorry. These are from an old plugin that I forgot I had even used. Apologies!