Skip to content

Commit

Permalink
some more replacements.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdharmesh committed Dec 15, 2023
1 parent fc50442 commit b7dfd61
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
4 changes: 2 additions & 2 deletions assets/js/admin-autoshare-for-twitter-classic-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
2 changes: 1 addition & 1 deletion includes/rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit b7dfd61

Please sign in to comment.