Ticket #16334: 16334.patch
File 16334.patch, 1.8 KB (added by , 13 years ago) |
---|
-
wp-admin/press-this.php
307 307 jQuery('#extra-fields').html(''); 308 308 return false; 309 309 } 310 jQuery('#extra-fields').html('<div class="postbox"><h2> Add Photos<small id="photo_directions">(<?php _e("click images to select") ?>)</small></h2><ul class="actions"><li><a href="#" id="photo-add-url" class="thickbox button"><?php _e("Add from URL") ?> +</a></li></ul><div class="inside"><div class="titlewrap"><div id="img_container"></div></div><p id="options"><a href="#" class="close button"><?php _e('Cancel'); ?></a><a href="#" class="refresh button"><?php _e('Refresh'); ?></a></p></div>');310 jQuery('#extra-fields').html('<div class="postbox"><h2><?php _e("Add Photos"); ?> <small id="photo_directions">(<?php _e("click images to select") ?>)</small></h2><ul class="actions"><li><a href="#" id="photo-add-url" class="thickbox button"><?php _e("Add from URL") ?> +</a></li></ul><div class="inside"><div class="titlewrap"><div id="img_container"></div></div><p id="options"><a href="#" class="close button"><?php _e('Cancel'); ?></a><a href="#" class="refresh button"><?php _e('Refresh'); ?></a></p></div>'); 311 311 jQuery('#img_container').html(strtoappend); 312 312 <?php break; 313 313 } … … 601 601 <ul id="actions" class="actions"> 602 602 603 603 <li id="photo_button"> 604 Add: <?php if ( current_user_can('upload_files') ) { ?><a title="<?php _e('Insert an Image'); ?>" href="#"> 604 <?php _e('Add:'); ?> 605 <?php if ( current_user_can('upload_files') ) { ?><a title="<?php _e('Insert an Image'); ?>" href="#"> 605 606 <img alt="<?php _e('Insert an Image'); ?>" src="<?php echo esc_url( admin_url( 'images/media-button-image.gif?ver=20100531' ) ); ?>"/></a> 606 607 <?php } ?> 607 608 </li>