WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/13/2008 04:57:01 AM (13 years ago)
Author:
ryan
Message:

Press This: properly add and load press-this-ie.css, cleanup of the bookmarklet code. Props azaozz. see #6813

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r8308 r8323  
    746746function get_shortcut_link() {
    747747    $link = "javascript:
    748             var d=document;
    749             var w=window;
    750             var e=w.getSelection;
    751             var k=d.getSelection;
    752             var x=d.selection;
    753             var s=(e?e():(k)?k():(x?x.createRange().text:0));
    754             var f='" . admin_url('press-this.php') . "';
    755             var l=d.location;
    756             var e=encodeURIComponent;
    757             var g=f+'?u='+e(l.href)+'&t='+e(d.title)+'&s='+e(s)+'&v=2';
     748            var d=document,
     749            w=window,
     750            e=w.getSelection,
     751            k=d.getSelection,
     752            x=d.selection,
     753            s=(e?e():(k)?k():(x?x.createRange().text:0)),
     754            f='" . admin_url('press-this.php') . "',
     755            l=d.location,
     756            e=encodeURIComponent,
     757            g=f+'?u='+e(l.href)+'&t='+e(d.title)+'&s='+e(s)+'&v=2';
    758758            function a(){
    759759                if(!w.open(g,'t','toolbar=0,resizable=0,scrollbars=1,status=1,width=700,height=500')){
Note: See TracChangeset for help on using the changeset viewer.