Fix unescaped content

This commit is contained in:
Kelly Dwan 2019-11-13 16:27:08 -05:00
parent 5d4d1b7f4c
commit 88b5c746dd
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D

View file

@ -91,7 +91,7 @@ jQuery( document ).ready( function( $ ) {
const $message = $( '<div>' ) const $message = $( '<div>' )
.attr( 'id', 'add-contrib-message' ) .attr( 'id', 'add-contrib-message' )
.addClass( 'notice notice-error notice-alt' ) .addClass( 'notice notice-error notice-alt' )
.html( '<p>' + response.message + '</p>' ); .append( $( '<p>' ).text( response.message ) );
$( '#add-contrib-message' ).replaceWith( $message ); $( '#add-contrib-message' ).replaceWith( $message );
} else if ( response.contributors ) { } else if ( response.contributors ) {