WordPress.org

Make WordPress Core

Ticket #3731: post-new.patch

File post-new.patch, 1.8 KB (added by DD32, 11 years ago)
  • post-new.php

     
    5353include('edit-form-advanced.php');
    5454?>
    5555
    56 <?php if ( $is_NS4 || $is_gecko || $is_winIE ) { ?>
     56<?php if ( $is_NS4 || $is_gecko || $is_winIE || $is_macIE || $is_opera ) { ?>
    5757<div id="wp-bookmarklet" class="wrap">
    5858<h3><?php _e('WordPress Bookmarklet'); ?></h3>
    5959<p><?php _e('Right click on the following link and choose "Add to favorites" to create a posting shortcut.'); ?></p>
    6060<p>
    6161
    6262<?php
    63 if ($is_NS4 || $is_gecko) {
     63if ($is_NS4 || $is_gecko || $is_opera) {
    6464?>
    6565<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_option('siteurl') ?>/wp-admin/post-new.php?text='+encodeURIComponent(Q)+'&amp;popupurl='+encodeURIComponent(location.href)+'&amp;popuptitle='+encodeURIComponent(document.title);"><?php printf(__('Press It - %s'), wp_specialchars(get_option('blogname'))); ?></a>
    6666<?php
     
    7979<?php _e('One-click bookmarklet:') ?><br />
    8080<a href="javascript:oneclickbookmarklet(0);"><?php _e('click here') ?></a>
    8181<?php
    82 } else if ($is_opera) {
    83 ?>
    84 <a href="javascript:location.href='<?php echo get_option('siteurl'); ?>/wp-admin/post-new.php?popupurl='+escape(location.href)+'&popuptitle='+escape(document.title);"><?php printf(__('Press it - %s'), get_option('blogname')); ?></a>
    85 <?php
    8682} else if ($is_macIE) {
    8783?>
    8884<a href="javascript:Q='';location.href='<?php echo get_option('siteurl'); ?>/wp-admin/bookmarklet.php?text='+escape(document.getSelection())+'&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title);"><?php printf(__('Press it - %s'), get_option('blogname')); ?></a>