mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-10 12:50:18 +01:00
Brand as Press This. see #6813
git-svn-id: http://svn.automattic.com/wordpress/trunk@7931 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c46da4e0f5
commit
aa927d3859
@ -183,8 +183,8 @@ if ( !empty($_GET['load']) && 'photo' == $_GET['load'] ) {
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<form action="quick-post.php?action=post" method="post" id="photo_form">
|
<form action="press-this.php?action=post" method="post" id="photo_form">
|
||||||
<?php wp_nonce_field('quick-post') ?>
|
<?php wp_nonce_field('press-this') ?>
|
||||||
<input type="hidden" name="source" value="bookmarklet"/>
|
<input type="hidden" name="source" value="bookmarklet"/>
|
||||||
<input type="hidden" name="post_type" value="photo"/>
|
<input type="hidden" name="post_type" value="photo"/>
|
||||||
<div id="posting">
|
<div id="posting">
|
||||||
@ -248,7 +248,7 @@ exit;
|
|||||||
<?php wp_enqueue_script('jquery-ui-tabs'); ?>
|
<?php wp_enqueue_script('jquery-ui-tabs'); ?>
|
||||||
<?php wp_enqueue_script('thickbox'); ?>
|
<?php wp_enqueue_script('thickbox'); ?>
|
||||||
<?php do_action('admin_print_scripts'); do_action('admin_head'); ?>
|
<?php do_action('admin_print_scripts'); do_action('admin_head'); ?>
|
||||||
<?php wp_admin_css('css/quick-post'); ?>
|
<?php wp_admin_css('css/press-this'); ?>
|
||||||
<?php wp_admin_css( 'css/colors' ); ?>
|
<?php wp_admin_css( 'css/colors' ); ?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
@ -310,7 +310,7 @@ exit;
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ( 'post' == $_REQUEST['action'] ) {
|
if ( 'post' == $_REQUEST['action'] ) {
|
||||||
check_admin_referer('quick-post');
|
check_admin_referer('press-this');
|
||||||
$post_ID = quick_post();
|
$post_ID = quick_post();
|
||||||
?>
|
?>
|
||||||
<script>if(confirm("<?php _e('Your post is saved. Do you want to view the post?') ?>")) {window.opener.location.replace("<?php echo get_permalink($post_ID);?>");}window.close();</script>
|
<script>if(confirm("<?php _e('Your post is saved. Do you want to view the post?') ?>")) {window.opener.location.replace("<?php echo get_permalink($post_ID);?>");}window.close();</script>
|
||||||
@ -331,8 +331,8 @@ if ( 'post' == $_REQUEST['action'] ) {
|
|||||||
|
|
||||||
<!-- Regular -->
|
<!-- Regular -->
|
||||||
<div id="section-1">
|
<div id="section-1">
|
||||||
<form action="quick-post.php?action=post" method="post" id="regular_form">
|
<form action="press-this.php?action=post" method="post" id="regular_form">
|
||||||
<?php wp_nonce_field('quick-post') ?>
|
<?php wp_nonce_field('press-this') ?>
|
||||||
<input type="hidden" name="source" value="bookmarklet"/>
|
<input type="hidden" name="source" value="bookmarklet"/>
|
||||||
<input type="hidden" name="post_type" value="regular"/>
|
<input type="hidden" name="post_type" value="regular"/>
|
||||||
<div id="posting">
|
<div id="posting">
|
||||||
@ -363,8 +363,8 @@ if ( 'post' == $_REQUEST['action'] ) {
|
|||||||
|
|
||||||
<!-- Quote -->
|
<!-- Quote -->
|
||||||
<div id="section-3">
|
<div id="section-3">
|
||||||
<form action="quick-post.php?action=post" method="post" id="quote_form">
|
<form action="press-this.php?action=post" method="post" id="quote_form">
|
||||||
<?php wp_nonce_field('quick-post') ?>
|
<?php wp_nonce_field('press-this') ?>
|
||||||
<input type="hidden" name="source" value="bookmarklet"/>
|
<input type="hidden" name="source" value="bookmarklet"/>
|
||||||
<input type="hidden" name="post_type" value="quote"/>
|
<input type="hidden" name="post_type" value="quote"/>
|
||||||
<div id="posting">
|
<div id="posting">
|
||||||
@ -400,8 +400,8 @@ if ( 'post' == $_REQUEST['action'] ) {
|
|||||||
|
|
||||||
<!-- Video -->
|
<!-- Video -->
|
||||||
<div id="section-4">
|
<div id="section-4">
|
||||||
<form action="quick-post.php?action=post" method="post" id="video_form">
|
<form action="press-this.php?action=post" method="post" id="video_form">
|
||||||
<?php wp_nonce_field('quick-post') ?>
|
<?php wp_nonce_field('press-this') ?>
|
||||||
<input type="hidden" name="source" value="bookmarklet"/>
|
<input type="hidden" name="source" value="bookmarklet"/>
|
||||||
<input type="hidden" name="post_type" value="video"/>
|
<input type="hidden" name="post_type" value="video"/>
|
||||||
<div id="posting">
|
<div id="posting">
|
@ -750,7 +750,7 @@ function get_shortcut_link() {
|
|||||||
var k=d.getSelection;
|
var k=d.getSelection;
|
||||||
var x=d.selection;
|
var x=d.selection;
|
||||||
var s=(e?e():(k)?k():(x?x.createRange().text:0));
|
var s=(e?e():(k)?k():(x?x.createRange().text:0));
|
||||||
var f='" . get_settings('siteurl') . '/wp-admin/quick-post.php' . "';
|
var f='" . get_settings('siteurl') . '/wp-admin/press-this.php' . "';
|
||||||
var l=d.location;
|
var l=d.location;
|
||||||
var e=encodeURIComponent;
|
var e=encodeURIComponent;
|
||||||
var u= '?u=' + e(l.href);
|
var u= '?u=' + e(l.href);
|
||||||
|
Loading…
Reference in New Issue
Block a user