X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/022dfbbbe3215917d84708eb09acca93b21ae9e0..7688c6ba71852cd89123b62b2d57683535e4702a:/wp-admin/bookmarklet.php diff --git a/wp-admin/bookmarklet.php b/wp-admin/bookmarklet.php index 2fa3c842..fca99e1f 100644 --- a/wp-admin/bookmarklet.php +++ b/wp-admin/bookmarklet.php @@ -3,7 +3,7 @@ $mode = 'bookmarklet'; require_once('admin.php'); if ( ! current_user_can('edit_posts') ) - die ("Cheatin' uh?"); + wp_die(__('Cheatin’ uh?')); if ('b' == $a): ?> @@ -25,33 +25,33 @@ $post = get_default_post_to_edit(); $popuptitle = wp_specialchars(stripslashes($popuptitle)); $text = wp_specialchars(stripslashes(urldecode($text))); - + $popuptitle = funky_javascript_fix($popuptitle); $text = funky_javascript_fix($text); - + $post_title = wp_specialchars($_REQUEST['post_title']); if (!empty($post_title)) $post->post_title = stripslashes($post_title); else $post->post_title = $popuptitle; - - + + $content = wp_specialchars($_REQUEST['content']); -$popupurl = clean_url(stripslashes($_REQUEST['popupurl'])); - if ( !empty($content) ) { - $post->post_content = wp_specialchars( stripslashes($_REQUEST['content']) ); - } else { - $post->post_content = ''.$popuptitle.''."\n$text"; - } +$popupurl = clean_url($_REQUEST['popupurl']); +if ( !empty($content) ) { + $post->post_content = wp_specialchars( stripslashes($_REQUEST['content']) ); +} else { + $post->post_content = ''.$popuptitle.''."\n$text"; +} - /* /big funky fixes */ +/* /big funky fixes */ ?> <?php bloginfo('name') ?> › Bookmarklet — WordPress - - + +