Changeset 10030 for trunk/wp-admin/press-this.php
- Timestamp:
- 12/04/2008 04:58:27 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/press-this.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/press-this.php
r9961 r10030 62 62 // insert the post with nothing in it, to get an ID 63 63 $post_ID = wp_insert_post($quick, true); 64 65 64 $content = $_REQUEST['content']; 66 65 … … 76 75 if( !is_wp_error($upload) ) $content = preg_replace('/<img ([^>]*)src=(\"|\')'.$quoted.'(\2)([^>\/]*)\/*>/is', $upload, $content); 77 76 } 78 77 79 78 // set the post_content 80 79 $quick['post_content'] = $content; … … 351 350 if ( user_can_richedit() ) { 352 351 add_filter( 'teeny_mce_before_init', create_function( '$a', '$a["height"] = "400"; $a["onpageload"] = ""; $a["mode"] = "textareas"; $a["editor_selector"] = "mceEditor"; return $a;' ) ); 353 354 352 wp_tiny_mce( true ); 355 353 } … … 454 452 show('photo'); 455 453 <?php } ?> 456 454 jQuery('#title').unbind(); 457 455 jQuery('#publish, #save').click(function() { jQuery('#saving').css('display', 'inline'); }); 458 456 }); … … 545 543 <a title="<?php _e('Embed a Video'); ?>" href="#"><img alt="<?php _e('Embed a Video'); ?>" src="images/media-button-video.gif"/></a> 546 544 </li> 545 <?php if( user_can_richedit() ) { ?> 547 546 <li id="switcher"> 548 547 <?php wp_print_scripts( 'quicktags' ); ?> … … 552 551 <div class="zerosize"><input accesskey="e" type="button" onclick="switchEditors.go('<?php echo $id; ?>')" /></div> 553 552 </li> 553 <?php } ?> 554 554 </ul> 555 555 <div id="quicktags"></div>
Note: See TracChangeset
for help on using the changeset viewer.