From b7dfd61a433f522ad3c7850ee986e38f24837e14 Mon Sep 17 00:00:00 2001 From: Dharmesh Patel Date: Fri, 15 Dec 2023 12:18:51 +0530 Subject: [PATCH] some more replacements. --- README.md | 4 ++-- assets/js/admin-autoshare-for-twitter-classic-editor.js | 4 ++-- includes/rest.php | 2 +- readme.txt | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index eb025b55..1b355d8c 100644 --- a/README.md +++ b/README.md @@ -70,9 +70,9 @@ function opt_my_cpt_into_autoshare() { add_action( 'init', 'opt_my_cpt_into_autoshare' ); ``` -In addition, adding support while registering custom post types also works. Post types are automatically set to autoshare. Future versions of this plugin could allow this to be set manually. +In addition, adding support while registering custom post types also works. Post types are automatically set to autopost. Future versions of this plugin could allow this to be set manually. -While the autoshare feature can be opted into for post types using the above filter, by default the editor still has to manually enable autoshare during the post prepublish flow. The `autoshare_for_twitter_enabled_default` filter allows autoshare to be enabled by default for all posts of a given post type. Editors can still manually uncheck the option during the publishing flow. +While the autopost feature can be opted into for post types using the above filter, by default the editor still has to manually enable autopost during the post prepublish flow. The `autoshare_for_twitter_enabled_default` filter allows autopost to be enabled by default for all posts of a given post type. Editors can still manually uncheck the option during the publishing flow. Example: diff --git a/assets/js/admin-autoshare-for-twitter-classic-editor.js b/assets/js/admin-autoshare-for-twitter-classic-editor.js index fd2f841e..9195f99b 100644 --- a/assets/js/admin-autoshare-for-twitter-classic-editor.js +++ b/assets/js/admin-autoshare-for-twitter-classic-editor.js @@ -167,14 +167,14 @@ if (limit <= count) { counterWrap.classList.remove('near-limit'); counterWrap.classList.add('over-limit'); - /* translators: %d is tweet message character count */ + /* translators: %d is post message character count */ $(counterWrap).text( sprintf(__('%d - Too Long!', 'autoshare-for-twitter'), count) ); } else if (240 <= count) { counterWrap.classList.remove('over-limit'); counterWrap.classList.add('near-limit'); - /* translators: %d is tweet message character count */ + /* translators: %d is post message character count */ $(counterWrap).text( sprintf( __('%d - Getting Long!', 'autoshare-for-twitter'), diff --git a/includes/rest.php b/includes/rest.php index e9c42965..aed537ee 100644 --- a/includes/rest.php +++ b/includes/rest.php @@ -80,7 +80,7 @@ function register_post_autoshare_for_twitter_meta_rest_route() { 'validate_callback' => 'rest_validate_request_arg', ], ENABLE_AUTOSHARE_FOR_TWITTER_KEY => [ - 'description' => __( 'Whether autoshare is enabled for the current post', 'autoshare-for-twitter' ), + 'description' => __( 'Whether autopost is enabled for the current post', 'autoshare-for-twitter' ), 'required' => true, 'sanitize_callback' => 'absint', 'type' => 'boolean', diff --git a/readme.txt b/readme.txt index 6952374b..9ed62099 100644 --- a/readme.txt +++ b/readme.txt @@ -57,9 +57,9 @@ function opt_my_cpt_into_autoshare() { add_action( 'init', 'opt_my_cpt_into_autoshare' ); ` -In addition, adding support while registering custom post types also works. Post types are automatically set to autoshare. Future versions of this plugin could allow this to be set manually. +In addition, adding support while registering custom post types also works. Post types are automatically set to autopost. Future versions of this plugin could allow this to be set manually. -While the autoshare feature can be opted into for post types using the above filter, by default the editor still has to manually enable autoshare during the post prepublish flow. The `autoshare_for_twitter_enabled_default` filter allows autoshare to be enabled by default for all posts of a given post type. Editors can still manually uncheck the option during the publishing flow. +While the autopost feature can be opted into for post types using the above filter, by default the editor still has to manually enable autopost during the post prepublish flow. The `autoshare_for_twitter_enabled_default` filter allows autopost to be enabled by default for all posts of a given post type. Editors can still manually uncheck the option during the publishing flow. Example: