Ticket #3731: post-new.patch
| File post-new.patch, 1.8 KB (added by DD32, 5 years ago) |
|---|
-
post-new.php
53 53 include('edit-form-advanced.php'); 54 54 ?> 55 55 56 <?php if ( $is_NS4 || $is_gecko || $is_winIE ) { ?>56 <?php if ( $is_NS4 || $is_gecko || $is_winIE || $is_macIE || $is_opera ) { ?> 57 57 <div id="wp-bookmarklet" class="wrap"> 58 58 <h3><?php _e('WordPress Bookmarklet'); ?></h3> 59 59 <p><?php _e('Right click on the following link and choose "Add to favorites" to create a posting shortcut.'); ?></p> 60 60 <p> 61 61 62 62 <?php 63 if ($is_NS4 || $is_gecko ) {63 if ($is_NS4 || $is_gecko || $is_opera) { 64 64 ?> 65 65 <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)+'&popupurl='+encodeURIComponent(location.href)+'&popuptitle='+encodeURIComponent(document.title);"><?php printf(__('Press It - %s'), wp_specialchars(get_option('blogname'))); ?></a> 66 66 <?php … … 79 79 <?php _e('One-click bookmarklet:') ?><br /> 80 80 <a href="javascript:oneclickbookmarklet(0);"><?php _e('click here') ?></a> 81 81 <?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 <?php86 82 } else if ($is_macIE) { 87 83 ?> 88 84 <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>
