Skip to content

Commit f7cff12

Browse files
authored
Merge pull request #836 from Kit/restrict-content-fix-strings
Member Content: Replace “Members only” with “member-only”
2 parents e38df33 + 78fc015 commit f7cff12

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

tests/Support/Helper/KitRestrictContent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public function createRestrictedContentPage($I, $options = false)
163163
'post_type' => $options['post_type'],
164164
'post_title' => $options['post_title'],
165165

166-
// Emulate Gutenberg content with visible and members only content sections.
166+
// Emulate Gutenberg content with visible and member-only content sections.
167167
'post_content' => '<!-- wp:paragraph --><p>' . $options['visible_content'] . '</p><!-- /wp:paragraph -->
168168
<!-- wp:more --><!--more--><!-- /wp:more -->
169169
<!-- wp:paragraph -->' . $options['member_content'] . '<!-- /wp:paragraph -->',

views/backend/post/bulk-edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
// Therefore, we use -2 to denote 'No Change', even though this setting is for the Tag, so we're at least consistent.
8181
?>
8282
<option value="-2" data-preserve-on-refresh="1"><?php esc_html_e( '— No Change —', 'convertkit' ); ?></option>
83-
<option value="0" data-preserve-on-refresh="1"><?php esc_html_e( 'Don\'t restrict content to members only.', 'convertkit' ); ?></option>
83+
<option value="0" data-preserve-on-refresh="1"><?php esc_html_e( 'Don\'t restrict content to member-only.', 'convertkit' ); ?></option>
8484

8585
<optgroup label="<?php esc_attr_e( 'Forms', 'convertkit' ); ?>" data-resource="forms">
8686
<?php

views/backend/post/meta-box.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
<td>
144144
<div class="convertkit-select2-container convertkit-select2-container-grid">
145145
<select name="wp-convertkit[restrict_content]" id="wp-convertkit-restrict_content" class="convertkit-select2">
146-
<option value="0"<?php selected( '', $convertkit_post->get_restrict_content() ); ?> data-preserve-on-refresh="1"><?php esc_html_e( 'Don\'t restrict content to members only.', 'convertkit' ); ?></option>
146+
<option value="0"<?php selected( '', $convertkit_post->get_restrict_content() ); ?> data-preserve-on-refresh="1"><?php esc_html_e( 'Don\'t restrict content to member-only.', 'convertkit' ); ?></option>
147147

148148
<optgroup label="<?php esc_attr_e( 'Forms', 'convertkit' ); ?>" data-resource="forms">
149149
<?php
@@ -192,13 +192,13 @@
192192
<span class="dashicons dashicons-update"></span>
193193
</button>
194194
<p class="description">
195-
<?php esc_html_e( 'Select the Kit form, tag or product that the visitor must be subscribed to, permitting them access to view this members only content.', 'convertkit' ); ?>
195+
<?php esc_html_e( 'Select the Kit form, tag or product that the visitor must be subscribed to, permitting them access to view this member-only content.', 'convertkit' ); ?>
196196
<br />
197197
<code><?php esc_html_e( 'Form', 'convertkit' ); ?></code>
198-
<?php esc_html_e( ': Displays the Kit form. On submission, the email address will be subscribed to the selected form, granting access to the members only content. Useful to gate free content in return for an email address.', 'convertkit' ); ?>
198+
<?php esc_html_e( ': Displays the Kit form. On submission, the email address will be subscribed to the selected form, granting access to the member-only content. Useful to gate free content in return for an email address.', 'convertkit' ); ?>
199199
<br />
200200
<code><?php esc_html_e( 'Tag', 'convertkit' ); ?></code>
201-
<?php esc_html_e( ': Displays a WordPress styled subscription form. On submission, the email address will be subscribed to the selected tag, granting access to the members only content. Useful to gate free content in return for an email address.', 'convertkit' ); ?>
201+
<?php esc_html_e( ': Displays a WordPress styled subscription form. On submission, the email address will be subscribed to the selected tag, granting access to the member-only content. Useful to gate free content in return for an email address.', 'convertkit' ); ?>
202202
<br />
203203
<code><?php esc_html_e( 'Product', 'convertkit' ); ?></code>
204204
<?php esc_html_e( ': Displays a link to the Kit product, and a login form. Useful to gate content that can only be accessed by purchasing the Kit product.', 'convertkit' ); ?>

views/backend/post/quick-edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<label for="wp-convertkit-quick-edit-restrict_content">
5959
<span class="title convertkit-icon-restrict-content"><?php esc_html_e( 'Member', 'convertkit' ); ?></span>
6060
<select name="wp-convertkit[restrict_content]" id="wp-convertkit-quick-edit-restrict_content" size="1">
61-
<option value="0" data-preserve-on-refresh="1"><?php esc_html_e( 'Don\'t restrict content to members only.', 'convertkit' ); ?></option>
61+
<option value="0" data-preserve-on-refresh="1"><?php esc_html_e( 'Don\'t restrict content to member-only.', 'convertkit' ); ?></option>
6262

6363
<optgroup label="<?php esc_attr_e( 'Forms', 'convertkit' ); ?>" data-resource="forms">
6464
<?php

views/backend/setup-wizard/convertkit-restrict-content-setup/content-2.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@
101101
</optgroup>
102102
</select>
103103
<p class="description">
104-
<?php esc_html_e( 'Select the Kit form, tag or product that the visitor must be subscribed to, permitting them access to view this members only content.', 'convertkit' ); ?>
104+
<?php esc_html_e( 'Select the Kit form, tag or product that the visitor must be subscribed to, permitting them access to view this member-only content.', 'convertkit' ); ?>
105105
<br />
106106
<code><?php esc_html_e( 'Form', 'convertkit' ); ?></code>
107-
<?php esc_html_e( ': Displays the Kit form. On submission, the email address will be subscribed to the selected form, granting access to the members only content. Useful to gate free content in return for an email address.', 'convertkit' ); ?>
107+
<?php esc_html_e( ': Displays the Kit form. On submission, the email address will be subscribed to the selected form, granting access to the member-only content. Useful to gate free content in return for an email address.', 'convertkit' ); ?>
108108
<br />
109109
<code><?php esc_html_e( 'Tag', 'convertkit' ); ?></code>
110-
<?php esc_html_e( ': Displays a WordPress styled subscription form. On submission, the email address will be subscribed to the selected tag, granting access to the members only content. Useful to gate free content in return for an email address.', 'convertkit' ); ?>
110+
<?php esc_html_e( ': Displays a WordPress styled subscription form. On submission, the email address will be subscribed to the selected tag, granting access to the member-only content. Useful to gate free content in return for an email address.', 'convertkit' ); ?>
111111
<br />
112112
<code><?php esc_html_e( 'Product', 'convertkit' ); ?></code>
113113
<?php esc_html_e( ': Displays a link to the Kit product, and a login form. Useful to gate content that can only be accessed by purchasing the Kit product.', 'convertkit' ); ?>

0 commit comments

Comments
 (0)