Skip to content

Commit 7a1ed8e

Browse files
rename notes_notify -> wp_ notes_notify
1 parent 93b9bd1 commit 7a1ed8e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/wp-admin/includes/schema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ function populate_options( array $options = array() ) {
421421
'use_smilies' => 1,
422422
'require_name_email' => 1,
423423
'comments_notify' => 1,
424-
'notes_notify' => 1,
424+
'wp_notes_notify' => 1,
425425
'posts_per_rss' => 10,
426426
'rss_use_excerpt' => 0,
427427
'mailserver_url' => 'mail.example.com',

src/wp-admin/options-discussion.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@
161161
<input name="moderation_notify" type="checkbox" id="moderation_notify" value="1" <?php checked( '1', get_option( 'moderation_notify' ) ); ?> />
162162
<?php _e( 'A comment is held for moderation' ); ?> </label>
163163
<br />
164-
<label for="notes_notify">
165-
<input name="notes_notify" type="checkbox" id="notes_notify" value="1" <?php checked( '1', get_option( 'notes_notify' ) ); ?> />
164+
<label for="wp_notes_notify">
165+
<input name="wp_notes_notify" type="checkbox" id="wp_notes_notify" value="1" <?php checked( '1', get_option( 'wp_notes_notify' ) ); ?> />
166166
<?php _e( 'Anyone posts a note' ); ?> </label>
167167

168168
</fieldset></td>

src/wp-admin/options.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
'comment_order',
126126
'comment_registration',
127127
'show_comments_cookies_opt_in',
128-
'notes_notify',
128+
'wp_notes_notify',
129129
),
130130
'media' => array(
131131
'thumbnail_size_w',

src/wp-includes/comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2427,7 +2427,7 @@ function wp_new_comment_notify_postauthor( $comment_id ) {
24272427
$comment = get_comment( $comment_id );
24282428
$is_note = ( $comment && 'note' === $comment->comment_type );
24292429

2430-
$maybe_notify = $is_note ? get_option( 'notes_notify' ) : get_option( 'comments_notify' );
2430+
$maybe_notify = $is_note ? get_option( 'wp_notes_notify' ) : get_option( 'comments_notify' );
24312431

24322432
/**
24332433
* Filters whether to send the post author new comment notification emails,

0 commit comments

Comments
 (0)