Changeset 8302
- Timestamp:
- 07/09/2008 07:51:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/press-this.php
r8256 r8302 396 396 set_menu('text'); 397 397 set_title('<?php _e('Post') ?>'); 398 <?php if ($selection) { ?> 399 set_editor("<?php echo $selection; ?>"); 400 <?php } else { ?> 401 set_editor("<a href='<?php echo $url ?>'><?php echo $title; ?></a>"); 402 <? } ?> 398 403 return false; 399 404 break; … … 401 406 set_menu('quote'); 402 407 set_title('<?php _e('Quote') ?>'); 403 set_editor("<blockquote><p><?php echo format_to_edit($selection); ?> </p><p><cite><a href='<?php echo $url; ?>'><?php echo $title; ?> </a> </cite> </p></blockquote>");408 set_editor("<blockquote><p><?php echo $selection; ?> </p><p><cite><a href='<?php echo $url; ?>'><?php echo $title; ?> </a> </cite> </p></blockquote>"); 404 409 return false; 405 410 break; … … 436 441 set_title('<?php _e('Post') ?>'); 437 442 <?php if ($selection) { ?> 438 set_editor("<?php echo format_to_edit($selection); ?>"); 439 <?php } ?> 443 set_editor("<?php echo $selection; ?>"); 444 <?php } else { ?> 445 set_editor("<a href='<?php echo $url ?>'><?php echo $title; ?></a>"); 446 <? } ?> 440 447 jQuery('#extra_fields').show(); 441 448 jQuery('#extra_fields').before('<h2 id="waiting"><img src="images/loading.gif" alt="" /><?php echo js_escape( __( 'Loading...' ) ); ?></h2>'); … … 501 508 <h2 id="content_type"><label for="content"><?php _e('Post') ?></label></h2> 502 509 <div class="editor-container"> 503 <textarea name="content" id="content" style="width:100%;" class="mceEditor"><?php if ($selection) { ?><a href='<?php echo $url ?>'><?php echo format_to_edit($selection) ?></a><?php} else { ?><a href='<?php echo $url ?>'><?php echo $title; ?></a><?php } ?></textarea>510 <textarea name="content" id="content" style="width:100%;" class="mceEditor"><?php if ($selection) { echo wp_richedit_pre($selection); } else { ?><a href='<?php echo $url ?>'><?php echo $title; ?></a><?php } ?></textarea> 504 511 </div> 505 512 </div> 506 513 </div> 507 514 508 515 <div id="categories"> 509 516 <div class="submitbox" id="submitpost">
Note: See TracChangeset
for help on using the changeset viewer.