Press This fixes from Noel. see #7949
git-svn-id: https://develop.svn.wordpress.org/trunk@10030 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b97cf8d9e2
commit
e3c3333f74
|
@ -444,7 +444,6 @@ ul.categorychecklist li {
|
||||||
|
|
||||||
#saving {
|
#saving {
|
||||||
display: inline;
|
display: inline;
|
||||||
padding-top: 5px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.submit input,
|
.submit input,
|
||||||
|
|
|
@ -61,7 +61,6 @@ function press_it() {
|
||||||
|
|
||||||
// insert the post with nothing in it, to get an ID
|
// insert the post with nothing in it, to get an ID
|
||||||
$post_ID = wp_insert_post($quick, true);
|
$post_ID = wp_insert_post($quick, true);
|
||||||
|
|
||||||
$content = $_REQUEST['content'];
|
$content = $_REQUEST['content'];
|
||||||
|
|
||||||
if($_REQUEST['photo_src'])
|
if($_REQUEST['photo_src'])
|
||||||
|
@ -75,7 +74,7 @@ function press_it() {
|
||||||
$quoted = preg_quote2($image);
|
$quoted = preg_quote2($image);
|
||||||
if( !is_wp_error($upload) ) $content = preg_replace('/<img ([^>]*)src=(\"|\')'.$quoted.'(\2)([^>\/]*)\/*>/is', $upload, $content);
|
if( !is_wp_error($upload) ) $content = preg_replace('/<img ([^>]*)src=(\"|\')'.$quoted.'(\2)([^>\/]*)\/*>/is', $upload, $content);
|
||||||
}
|
}
|
||||||
|
|
||||||
// set the post_content
|
// set the post_content
|
||||||
$quick['post_content'] = $content;
|
$quick['post_content'] = $content;
|
||||||
// error handling for $post
|
// error handling for $post
|
||||||
|
@ -350,7 +349,6 @@ die;
|
||||||
|
|
||||||
if ( user_can_richedit() ) {
|
if ( user_can_richedit() ) {
|
||||||
add_filter( 'teeny_mce_before_init', create_function( '$a', '$a["height"] = "400"; $a["onpageload"] = ""; $a["mode"] = "textareas"; $a["editor_selector"] = "mceEditor"; return $a;' ) );
|
add_filter( 'teeny_mce_before_init', create_function( '$a', '$a["height"] = "400"; $a["onpageload"] = ""; $a["mode"] = "textareas"; $a["editor_selector"] = "mceEditor"; return $a;' ) );
|
||||||
|
|
||||||
wp_tiny_mce( true );
|
wp_tiny_mce( true );
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -453,7 +451,7 @@ die;
|
||||||
<?php } elseif ( preg_match("/flickr\.com/i", $url) ) { ?>
|
<?php } elseif ( preg_match("/flickr\.com/i", $url) ) { ?>
|
||||||
show('photo');
|
show('photo');
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
jQuery('#title').unbind();
|
||||||
jQuery('#publish, #save').click(function() { jQuery('#saving').css('display', 'inline'); });
|
jQuery('#publish, #save').click(function() { jQuery('#saving').css('display', 'inline'); });
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -544,6 +542,7 @@ die;
|
||||||
<li id="video_button">
|
<li id="video_button">
|
||||||
<a title="<?php _e('Embed a Video'); ?>" href="#"><img alt="<?php _e('Embed a Video'); ?>" src="images/media-button-video.gif"/></a>
|
<a title="<?php _e('Embed a Video'); ?>" href="#"><img alt="<?php _e('Embed a Video'); ?>" src="images/media-button-video.gif"/></a>
|
||||||
</li>
|
</li>
|
||||||
|
<?php if( user_can_richedit() ) { ?>
|
||||||
<li id="switcher">
|
<li id="switcher">
|
||||||
<?php wp_print_scripts( 'quicktags' ); ?>
|
<?php wp_print_scripts( 'quicktags' ); ?>
|
||||||
<?php add_filter('the_editor_content', 'wp_richedit_pre'); ?>
|
<?php add_filter('the_editor_content', 'wp_richedit_pre'); ?>
|
||||||
|
@ -551,6 +550,7 @@ die;
|
||||||
<a id="edButtonPreview" class="active" onclick="switchEditors.go('<?php echo $id; ?>', 'tinymce');"><?php _e('Visual'); ?></a>
|
<a id="edButtonPreview" class="active" onclick="switchEditors.go('<?php echo $id; ?>', 'tinymce');"><?php _e('Visual'); ?></a>
|
||||||
<div class="zerosize"><input accesskey="e" type="button" onclick="switchEditors.go('<?php echo $id; ?>')" /></div>
|
<div class="zerosize"><input accesskey="e" type="button" onclick="switchEditors.go('<?php echo $id; ?>')" /></div>
|
||||||
</li>
|
</li>
|
||||||
|
<?php } ?>
|
||||||
</ul>
|
</ul>
|
||||||
<div id="quicktags"></div>
|
<div id="quicktags"></div>
|
||||||
<div class="editor-container">
|
<div class="editor-container">
|
||||||
|
|
|
@ -320,7 +320,7 @@ function wp_default_styles( &$styles ) {
|
||||||
$styles->add( 'dashboard', '/wp-admin/css/dashboard.css', array(), '20081203' );
|
$styles->add( 'dashboard', '/wp-admin/css/dashboard.css', array(), '20081203' );
|
||||||
$styles->add( 'install', '/wp-admin/css/install.css', array(), '20081203' );
|
$styles->add( 'install', '/wp-admin/css/install.css', array(), '20081203' );
|
||||||
$styles->add( 'theme-editor', '/wp-admin/css/theme-editor.css', array(), '20081203' );
|
$styles->add( 'theme-editor', '/wp-admin/css/theme-editor.css', array(), '20081203' );
|
||||||
$styles->add( 'press-this', '/wp-admin/css/press-this.css', array(), '20081203' );
|
$styles->add( 'press-this', '/wp-admin/css/press-this.css', array(), '20081203b' );
|
||||||
$styles->add( 'thickbox', '/wp-includes/js/thickbox/thickbox.css', array(), '20081203' );
|
$styles->add( 'thickbox', '/wp-includes/js/thickbox/thickbox.css', array(), '20081203' );
|
||||||
$styles->add( 'login', '/wp-admin/css/login.css', array(), '20081203' );
|
$styles->add( 'login', '/wp-admin/css/login.css', array(), '20081203' );
|
||||||
$styles->add( 'plugin-install', '/wp-admin/css/plugin-install.css', array(), '20081203' );
|
$styles->add( 'plugin-install', '/wp-admin/css/plugin-install.css', array(), '20081203' );
|
||||||
|
|
Loading…
Reference in New Issue