Ticket #10749: link-template.php.patch
| File link-template.php.patch, 1.3 KB (added by , 17 years ago) |
|---|
-
link-template.php
1648 1648 */ 1649 1649 function get_shortcut_link() { 1650 1650 $link = "javascript: 1651 var d=document, 1652 w=window, 1653 e=w.getSelection, 1654 k=d.getSelection, 1651 var d=document, 1652 w=window, 1653 e=w.getSelection, 1654 k=d.getSelection, 1655 1655 x=d.selection, 1656 1656 s=(e?e():(k)?k():(x?x.createRange().text:0)), 1657 1657 f='" . admin_url('press-this.php') . "', 1658 1658 l=d.location, 1659 1659 e=encodeURIComponent, 1660 g=f+'?u='+e(l.href)+'&t='+e(d.title)+'&s='+e(s)+'&v=2'; 1661 function a(){ 1662 if(!w.open(g,'t','toolbar=0,resizable=0,scrollbars=1,status=1,width=720,height=570')){ 1663 l.href=g; 1664 } 1665 }"; 1666 if (strpos($_SERVER['HTTP_USER_AGENT'], 'Firefox') !== false) 1667 $link .= 'setTimeout(a,0);'; 1668 else 1669 $link .= 'a();'; 1660 u=f+'?u='+e(l.href)+'&t='+e(d.title)+'&s='+e(s)+'&v=4'; 1661 a=function(){if(!w.open(u,'t','toolbar=0,resizable=0,status=1,width=720,height=570'))l.href=u;}; 1662 if (/Firefox/.test(navigator.userAgent)) setTimeout(a, 0); else a(); 1663 void(0)"; 1670 1664 1671 $link .= "void(0);";1672 1673 1665 $link = str_replace(array("\r", "\n", "\t"), '', $link); 1674 1666 1675 1667 return apply_filters('shortcut_link', $link);
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)