There has to actually BE a displayTitle for us to use

This commit is contained in:
theopolisme 2014-03-14 15:50:39 -05:00
parent d6f468cf93
commit 272b8efd07

View File

@ -523,7 +523,7 @@
displayTitle = decodeURI( linkMatch[2] ).replace( /_/g, ' ' );
// Don't include the displayTitle if it is equal to the title
if ( title !== displayTitle ) {
if ( displayTitle && title !== displayTitle ) {
newLink = '[[' + title + '|' + displayTitle + ']]';
} else {
newLink = '[[' + title + ']]';