Skip to content

Commit

Permalink
Jetpack: Subscriptions - Remove inline styles from subscription notif…
Browse files Browse the repository at this point in the history
…ication (#25793)

* [not verified] Remove inline styles from subscription notification

* [not verified] changelog
  • Loading branch information
oskosk authored Aug 23, 2022
1 parent b8d569d commit d5e90d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions projects/plugins/jetpack/changelog/fix-subs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: bugfix

Remove inline styles from subscription notification
2 changes: 1 addition & 1 deletion projects/plugins/jetpack/modules/subscriptions/views.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public static function render_widget_status_messages( $instance ) {

$redirect_fragment = self::get_redirect_fragment();
printf(
'<div id="%1$s" class="jetpack-sub-notification" style="border: 1px solid%2$s; padding-left: 5px; padding-right: 5px; margin-bottom: 10px;">%3$s</div>',
'<div id="%1$s" class="jetpack-sub-notification">%3$s</div>',
esc_attr( $redirect_fragment ),
esc_attr( $border_color ),
wp_kses_post( $message )
Expand Down

0 comments on commit d5e90d4

Please sign in to comment.