There has to actually BE a displayTitle for us to use
This commit is contained in:
parent
d6f468cf93
commit
272b8efd07
@ -523,7 +523,7 @@
|
|||||||
displayTitle = decodeURI( linkMatch[2] ).replace( /_/g, ' ' );
|
displayTitle = decodeURI( linkMatch[2] ).replace( /_/g, ' ' );
|
||||||
|
|
||||||
// Don't include the displayTitle if it is equal to the title
|
// Don't include the displayTitle if it is equal to the title
|
||||||
if ( title !== displayTitle ) {
|
if ( displayTitle && title !== displayTitle ) {
|
||||||
newLink = '[[' + title + '|' + displayTitle + ']]';
|
newLink = '[[' + title + '|' + displayTitle + ']]';
|
||||||
} else {
|
} else {
|
||||||
newLink = '[[' + title + ']]';
|
newLink = '[[' + title + ']]';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user