Ticket #9434: press-this-4-1.diff
| File press-this-4-1.diff, 2.8 KB (added by , 17 years ago) |
|---|
-
wp-admin/press-this.php
69 69 // see if files exist in content - we don't want to upload non-used selected files. 70 70 if( strpos($_REQUEST['content'], $image) !== false ) { 71 71 $upload = media_sideload_image($image, $post_ID, $_REQUEST['photo_description'][$key]); 72 73 // Replace the POSTED content <img> with correct uploaded ones. 74 // escape quote for matching 75 $quoted = preg_quote2($image); 76 if( !is_wp_error($upload) ) $content = preg_replace('/<img ([^>]*)src=(\"|\')'.$quoted.'(\2)([^>\/]*)\/*>/is', $upload, $content); 72 73 // Replace the POSTED content <img> with correct uploaded ones. Regex contains fix for Magic Quotes 74 if( !is_wp_error($upload) ) $content = preg_replace('/<img ([^>]*)src=\\\?(\"|\')'.preg_quote2($image).'\\\?(\2)([^>\/]*)\/*>/is', $upload, $content); 77 75 } 78 76 79 77 // set the post_content and status … … 461 459 462 460 <!-- This div holds the photo metadata --> 463 461 <div class="photolist"></div> 464 462 463 <div id="submitdiv" class="stuffbox"> 464 <h3><?php _e('Publish') ?></h3> 465 <div class="inside"> 466 <p> 467 <input class="button" type="submit" name="draft" value="<?php _e('Save Draft') ?>" id="save" /> 468 <input class="button-primary" type="submit" name="publish" value="<?php _e('Publish') ?>" id="publish" /> 469 <img src="images/loading-publish.gif" alt="" id="saving" style="display:none;" /> 470 </p> 471 </div> 472 </div> 473 465 474 <div id="categorydiv" class="stuffbox"> 466 475 <h3><?php _e('Categories') ?></h3> 467 476 <div class="inside"> … … 502 511 <p class="tagcloud-link"><a href="#titlediv" class="tagcloud-link" id="link-post_tag"><?php _e('Choose from the most used tags in Post Tags'); ?></a></p> 503 512 </div> 504 513 </div> 505 <div id="submitdiv" class="stuffbox">506 <h3><?php _e('Publish') ?></h3>507 <div class="inside">508 <p>509 <input class="button" type="submit" name="draft" value="<?php _e('Save Draft') ?>" id="save" />510 <input class="button-primary" type="submit" name="publish" value="<?php _e('Publish') ?>" id="publish" />511 <img src="images/loading-publish.gif" alt="" id="saving" style="display:none;" />512 </p>513 </div>514 </div>515 514 </div> 516 515 </div> 517 516 -
wp-admin/css/press-this.css
16 16 background: #444 !important; 17 17 } 18 18 19 .tagchecklist span a { 20 background: transparent url(../images/xit.gif) no-repeat 0 0; 21 } 22 19 23 #poststuff #edButtonPreview, 20 24 #poststuff #edButtonHTML { 21 25 -moz-border-radius: 3px 3px 0 0;