Ticket #30859: 30859-post-js.diff
File 30859-post-js.diff, 687 bytes (added by , 6 years ago) |
---|
-
wp-admin/js/post.js
23 23 24 24 tagBox = { 25 25 clean : function(tags) { 26 if( 'undefined' == typeof(tags)) 27 return false; 28 26 29 var comma = postL10n.comma; 27 30 if ( ',' !== comma ) 28 31 tags = tags.replace(new RegExp(comma, 'g'), ','); … … 99 102 tagsval = tags.val(); 100 103 newtags = tagsval ? tagsval + comma + text : text; 101 104 105 if( 'undefined' == typeof(newtags)) 106 return false; 107 102 108 newtags = this.clean( newtags ); 103 109 newtags = array_unique_noempty( newtags.split(comma) ).join(comma); 104 110 tags.val(newtags);