Skip to content

Commit fb1f053

Browse files
committed
fix for GlotPress
1 parent ec11fa4 commit fb1f053

File tree

3 files changed

+27
-21
lines changed

3 files changed

+27
-21
lines changed

languages/wp-mail-replyto.pot

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
msgid ""
33
msgstr ""
44
"Project-Id-Version: Reply-To for WP_Mail\n"
5-
"POT-Creation-Date: 2024-10-31 08:58+0100\n"
5+
"POT-Creation-Date: 2024-11-02 10:48+0100\n"
66
"PO-Revision-Date: 2024-10-31 08:58+0100\n"
77
"Last-Translator: \n"
88
"Language-Team: \n"
@@ -16,8 +16,8 @@ msgstr ""
1616
"X-Poedit-WPHeader: replyto.php\n"
1717
"X-Poedit-SourceCharset: UTF-8\n"
1818
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
19-
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
20-
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
19+
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;"
20+
"_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
2121
"X-Poedit-SearchPath-0: .\n"
2222
"X-Poedit-SearchPathExcluded-0: *.min.js\n"
2323

readme.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Contributors: javiercasares
33
Tags: email, reply-to
44
Requires at least: 4.1
55
Tested up to: 6.7
6-
Stable tag: 1.0.1
6+
Stable tag: 1.0.2
77
Requires PHP: 5.6
8-
Version: 1.0.1
8+
Version: 1.0.2
99
License: GPL-2.0-or-later
1010
License URI: https://spdx.org/licenses/GPL-2.0-or-later.html
1111

@@ -28,6 +28,12 @@ Extract the contents of the ZIP and upload the contents to the `/wp-content/plug
2828

2929
== Changelog ==
3030

31+
= [1.0.2] - 2024-11-02 =
32+
33+
**Fixed**
34+
35+
* Preparation for GlotPress.
36+
3137
= [1.0.1] - 2024-10-31 =
3238

3339
**Added**

replyto.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
* Description: Configure your "Reply-To:" for WP_Mail with validation and admin settings.
55
* Requires at least: 4.1
66
* Requires PHP: 5.6
7-
* Version: 1.0.1
7+
* Version: 1.0.2
88
* Author: Javier Casares
99
* Author URI: https://www.javiercasares.com/
1010
* License: GPL-2.0-or-later
1111
* License URI: https://spdx.org/licenses/GPL-2.0-or-later.html
12-
* Text Domain: wp-mail-replyto
12+
* Text Domain: replyto
1313
* Domain Path: /languages
1414
*
15-
* @package wp-mail-replyto
15+
* @package replyto
1616
*
1717
* @version 1.0.0
1818
*/
@@ -33,7 +33,7 @@ function wp_mail_replyto( $args ) {
3333
if ( ! empty( $reply_to_email ) ) {
3434
$new_reply_to = sprintf(
3535
/* translators: %s: email address */
36-
__( 'Reply-To: <%s>', 'wp-mail-replyto' ),
36+
__( 'Reply-To: <%s>', 'replyto' ),
3737
sanitize_email( $reply_to_email )
3838
);
3939
}
@@ -87,10 +87,10 @@ function ( $header ) {
8787
*/
8888
function wp_mail_replyto_add_settings_page() {
8989
add_options_page(
90-
esc_html__( 'WP Mail Reply-To Settings', 'wp-mail-replyto' ),
91-
esc_html__( 'Reply-To', 'wp-mail-replyto' ),
90+
esc_html__( 'WP Mail Reply-To Settings', 'replyto' ),
91+
esc_html__( 'Reply-To', 'replyto' ),
9292
'manage_options',
93-
'wp-mail-replyto',
93+
'replyto',
9494
'wp_mail_replyto_render_settings_page'
9595
);
9696
}
@@ -112,16 +112,16 @@ function wp_mail_replyto_register_settings() {
112112

113113
add_settings_section(
114114
'wp_mail_replyto_main_section',
115-
esc_html__( 'Reply-To Configuration', 'wp-mail-replyto' ),
115+
esc_html__( 'Reply-To Configuration', 'replyto' ),
116116
'wp_mail_replyto_main_section_callback',
117-
'wp-mail-replyto'
117+
'replyto'
118118
);
119119

120120
add_settings_field(
121121
'wp_mail_replyto_email_field',
122-
esc_html__( 'Reply-To Email Address', 'wp-mail-replyto' ),
122+
esc_html__( 'Reply-To Email Address', 'replyto' ),
123123
'wp_mail_replyto_email_field_callback',
124-
'wp-mail-replyto',
124+
'replyto',
125125
'wp_mail_replyto_main_section'
126126
);
127127
}
@@ -131,7 +131,7 @@ function wp_mail_replyto_register_settings() {
131131
* Callback for the settings section description.
132132
*/
133133
function wp_mail_replyto_main_section_callback() {
134-
echo '<p>' . esc_html__( 'Set the email address to be used in the "Reply-To" header of outgoing emails.', 'wp-mail-replyto' ) . '</p>';
134+
echo '<p>' . esc_html__( 'Set the email address to be used in the "Reply-To" header of outgoing emails.', 'replyto' ) . '</p>';
135135
}
136136

137137
/**
@@ -140,7 +140,7 @@ function wp_mail_replyto_main_section_callback() {
140140
function wp_mail_replyto_email_field_callback() {
141141
$email = get_option( 'wp_mail_replyto_email', '' );
142142
echo '<input type="email" id="wp_mail_replyto_email" name="wp_mail_replyto_email" value="' . esc_attr( $email ) . '" size="50" />';
143-
echo '<p class="description">' . esc_html__( 'Enter the email address to be used as "Reply-To".', 'wp-mail-replyto' ) . '</p>';
143+
echo '<p class="description">' . esc_html__( 'Enter the email address to be used as "Reply-To".', 'replyto' ) . '</p>';
144144
}
145145

146146
/**
@@ -159,8 +159,8 @@ function wp_mail_replyto_render_settings_page() {
159159
<?php
160160
wp_nonce_field( 'update-options' );
161161
settings_fields( 'wp_mail_replyto_settings_group' );
162-
do_settings_sections( 'wp-mail-replyto' );
163-
submit_button( esc_html__( 'Save Settings', 'wp-mail-replyto' ) );
162+
do_settings_sections( 'replyto' );
163+
submit_button( esc_html__( 'Save Settings', 'replyto' ) );
164164
?>
165165
</form>
166166
</div>
@@ -171,6 +171,6 @@ function wp_mail_replyto_render_settings_page() {
171171
* Load plugin textdomain for translations.
172172
*/
173173
function wp_mail_replyto_load_textdomain() {
174-
load_plugin_textdomain( 'wp-mail-replyto', false, basename( __DIR__ ) . '/languages' );
174+
load_plugin_textdomain( 'replyto', false, basename( __DIR__ ) . '/languages' );
175175
}
176176
add_action( 'plugins_loaded', 'wp_mail_replyto_load_textdomain' );

0 commit comments

Comments
 (0)