Make WordPress Core


Ignore:
Timestamp:
11/17/2005 03:26:24 AM (21 years ago)
Author:
ryan
Message:

New bookmarklet action.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/post.php

    r2973 r3127  
    3737        switch($_POST['mode']) {
    3838                case 'bookmarklet':
    39                         $location = 'bookmarklet.php?a=b';
     39                        $location = $_POST['referredby'];
    4040                        break;
    4141                case 'sidebar':
    … …  
    5353                $location = "page-new.php?saved=true";
    5454
    55         if ( '' != $_POST['advanced'] || isset($_POST['save']) )
     55        if ( isset($_POST['save']) )
    5656                $location = "post.php?action=edit&post=$post_ID";
    5757
    … …  
    354354if ($is_NS4 || $is_gecko) {
    355355?>
    356 <a href="javascript:if(navigator.userAgent.indexOf('Safari') >= 0){Q=getSelection();}else{Q=document.selection?document.selection.createRange().text:document.getSelection();}void(window.open('<?php echo get_settings('siteurl') ?>/wp-admin/bookmarklet.php?text='+encodeURIComponent(Q)+'&amp;popupurl='+encodeURIComponent(location.href)+'&amp;popuptitle='+encodeURIComponent(document.title),'<?php _e('WordPress bookmarklet') ?>','scrollbars=yes,width=600,height=460,left=100,top=150,status=yes'));"><?php printf(__('Press It - %s'), wp_specialchars(get_settings('blogname'))); ?></a>
     356
     357<a href="javascript:if(navigator.userAgent.indexOf('Safari') >= 0){Q=getSelection();}else{Q=document.selection?document.selection.createRange().text:document.getSelection();}location.href='<?php echo get_settings('siteurl') ?>/wp-admin/post.php?text='+encodeURIComponent(Q)+'&amp;popupurl='+encodeURIComponent(location.href)+'&amp;popuptitle='+encodeURIComponent(document.title);"><?php printf(__('Press It - %s'), wp_specialchars(get_settings('blogname'))); ?></a>
    357358<?php
    358359} else if ($is_winIE) {
Note: See TracChangeset for help on using the changeset viewer.