From 9b7daff0b4f5032665f5a8608e417360c920269d Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 13 May 2008 16:02:12 +0000 Subject: [PATCH] Quick post updates: More gettext, escaping, compress bookmarklet JS. see #6813 git-svn-id: http://svn.automattic.com/wordpress/trunk@7924 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/quick-post.php | 22 ++++++------ wp-includes/link-template.php | 65 ++++++++++++++++++----------------- 2 files changed, 44 insertions(+), 43 deletions(-) diff --git a/wp-admin/quick-post.php b/wp-admin/quick-post.php index 99550e5e80..fbde41d912 100644 --- a/wp-admin/quick-post.php +++ b/wp-admin/quick-post.php @@ -30,20 +30,20 @@ function quick_post() { if ($_REQUEST['photo_link']) $content = ''; - $content .= ''; + $content .= ''; if ($_REQUEST['photo_link']) $content .= ''; if ($_REQUEST['content']) - $content = $content . "
" . $_REQUEST['content']; + $content = $content . '
' . $_REQUEST['content']; break; case "video": list($garbage,$video_id) = split("v=", $_REQUEST['content']); - $content = ""; + $content = ''; if ($_REQUEST['content2']) - $content = $content ."

" .$_REQUEST['content2'] ."

"; + $content = $content . '

' . $_REQUEST['content2'] . '

'; break; } @@ -208,7 +208,7 @@ $title = stripslashes($_GET['t']);

+
<a href=""></a>

@@ -285,7 +285,7 @@ $title = stripslashes($_GET['t']);
   - Cancel   +   
@@ -321,8 +321,8 @@ $title = stripslashes($_GET['t']);
-    -    +    +   
@@ -349,7 +349,7 @@ $title = stripslashes($_GET['t']); if ( preg_match("/youtube\.com\/watch/i", $_GET['u']) ) { list($domain, $video_id) = split("v=", $_GET['u']); ?> - +

@@ -359,14 +359,14 @@ $title = stripslashes($_GET['t']);

(optional)') ?>

- +
   -    +   
diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index af63f38ef8..0ad498d0c6 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -744,39 +744,40 @@ function posts_nav_link($sep=' — ', $prelabel='« Previous Page', $nx function get_shortcut_link() { $link = "javascript: - var imgstr=''; - var reg=new RegExp('&'); - for(i=0;i