Commit 1209da9b authored by Kevin Stover's avatar Kevin Stover Committed by GitHub

Merge pull request #2826 from wpninjas/issue#2725

Fixing a bug with forms that have null or bad titles. Closes #2725
parents efa3aae1 c4f0cfbb
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -27,7 +27,9 @@ define( [], function() {
// Strip HTML tags from the form title.
this.set( 'title', this.get( 'title' ).replace(/<\/?[^>]+(>|$)/g, "") );
if ( this.get( 'title' ) ) {
this.set( 'title', this.get( 'title' ).replace(/<\/?[^>]+(>|$)/g, "") );
initShortcode: function( id ) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment