Ticket #18149: 18149.2.patch
File 18149.2.patch, 782 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/js/wplink.js
187 187 }, 188 188 189 189 getAttrs: function() { 190 var href = inputs.url.val(); 191 192 if ( ! /^(?:[a-z]+:|#|\?|\.|\/)/.test( href ) ) { 193 href = 'http://' + href; 194 } 195 190 196 return { 191 href: inputs.url.val(),197 href: href, 192 198 title: inputs.title.val(), 193 199 target: inputs.openInNewTab.prop( 'checked' ) ? '_blank' : '' 194 200 }; … … 309 315 inputs.url.val( selection.replace( /&|�?38;/gi, '&' ) ); 310 316 } else { 311 317 // Set URL to default. 312 inputs.url.val( ' http://' );318 inputs.url.val( '' ); 313 319 } 314 320 315 321 // Set description to default.