Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed escaped quote on 'revision you submitted' email message #1370

Open
wants to merge 2 commits into
base: development
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion admin/revision-action_rvy.php
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ function rvy_revision_approve($revision_id = 0, $args = []) {
if (($db_action || !empty($args['force_notify'])) && rvy_get_option( 'rev_approval_notify_revisor' ) ) {
$title = sprintf(esc_html__('[%s] Revision Approval Notice', 'revisionary' ), $blogname );
$message = sprintf( esc_html__('The revision you submitted for the %1$s "%2$s" has been approved.', 'revisionary' ), $type_caption, $revision->post_title ) . "\r\n\r\n";
$message = str_replace($message, '"', '"', $message);

if ( $scheduled ) {
$datef = __awp( 'M j, Y @ g:i a' );
Expand Down Expand Up @@ -1386,6 +1387,7 @@ function rvy_publish_scheduled_revisions($args = []) {
if ( rvy_get_option( 'publish_scheduled_notify_revisor' ) ) {
$title = sprintf( esc_html__('[%s] %s Publication Notice', 'revisionary' ), $blogname, pp_revisions_status_label('future-revision', 'name') );
$message = sprintf( esc_html__('The scheduled revision you submitted for the %1$s "%2$s" has been published.', 'revisionary' ), $type_caption, $row->post_title ) . "\r\n\r\n";
$message = str_replace($message, '"', '"', $message);

if ( ! empty($post->ID) )
$message .= esc_html__( 'View it online: ', 'revisionary' ) . $published_url . "\r\n";
Expand All @@ -1408,6 +1410,7 @@ function rvy_publish_scheduled_revisions($args = []) {
if ( ( ( $post->post_author != $row->post_author ) || defined( 'RVY_LEGACY_SCHEDULED_REV_POST_AUTHOR_NOTIFY' ) ) && rvy_get_option( 'publish_scheduled_notify_author' ) ) {
$title = sprintf( esc_html__('[%s] %s Publication Notice', 'revisionary' ), $blogname, pp_revisions_status_label('future-revision', 'name') );
$message = sprintf( esc_html__('A scheduled revision to your %1$s "%2$s" has been published.', 'revisionary' ), $type_caption, $post->post_title ) . "\r\n\r\n";
$message = str_replace($message, '"', '"', $message);

if ( $revisor = new WP_User( $row->post_author ) )
$message .= sprintf( esc_html__('It was submitted by %1$s.'), $revisor->display_name ) . "\r\n\r\n";
Expand Down Expand Up @@ -1470,7 +1473,8 @@ function rvy_publish_scheduled_revisions($args = []) {
$title = sprintf(esc_html__('[%s] %s Publication'), $blogname, pp_revisions_status_label('future-revision', 'name') );

$message = sprintf( esc_html__('A scheduled revision to the %1$s "%2$s" has been published.'), $type_caption, $row->post_title ) . "\r\n\r\n";

$message = str_replace($message, '"', '"', $message);

if ( $author = new WP_User( $row->post_author ) )
$message .= sprintf( esc_html__('It was submitted by %1$s.'), $author->display_name ) . "\r\n\r\n";

Expand Down