Changeset 11013 for trunk/wp-admin/press-this.php
- Timestamp:
- 04/20/2009 06:18:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/press-this.php
r11010 r11013 59 59 $desc = isset($_REQUEST['photo_description'][$key]) ? $_REQUEST['photo_description'][$key] : ''; 60 60 $upload = media_sideload_image($image, $post_ID, $desc); 61 61 62 62 // Replace the POSTED content <img> with correct uploaded ones. Regex contains fix for Magic Quotes 63 63 if( !is_wp_error($upload) ) $content = preg_replace('/<img ([^>]*)src=\\\?(\"|\')'.preg_quote($image, '/').'\\\?(\2)([^>\/]*)\/*>/is', $upload, $content); … … 451 451 <!-- This div holds the photo metadata --> 452 452 <div class="photolist"></div> 453 453 454 454 <div id="submitdiv" class="stuffbox"> 455 455 <h3><?php _e('Publish') ?></h3> … … 466 466 </div> 467 467 </div> 468 468 469 469 <div id="categorydiv" class="stuffbox"> 470 470 <h3><?php _e('Categories') ?></h3> … … 525 525 <div class="postdivrich"> 526 526 <ul id="actions"> 527 527 528 528 <li id="photo_button"> 529 529 Add: <?php if ( current_user_can('upload_files') ) { ?><a title="<?php _e('Insert an Image'); ?>" href="#">
Note: See TracChangeset
for help on using the changeset viewer.