[wp-cvs] wordpress/wp-admin bookmarklet.php,1.18,1.19
Matthew Mullenweg
saxmatt at users.sourceforge.net
Thu Dec 23 00:08:44 UTC 2004
Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20396/wp-admin
Modified Files:
bookmarklet.php
Log Message:
Clean up global ideas from michel_v
Index: bookmarklet.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/bookmarklet.php,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** bookmarklet.php 22 Dec 2004 15:46:06 -0000 1.18
--- bookmarklet.php 23 Dec 2004 00:08:42 -0000 1.19
***************
*** 21,52 ****
<?php
} else {
! $popuptitle = wp_specialchars(stripslashes($popuptitle));
! $text = wp_specialchars(stripslashes(urldecode($text)));
!
! /* big funky fixes for browsers' javascript bugs */
!
! if (($is_macIE) && (!isset($IEMac_bookmarklet_fix))) {
! $popuptitle = preg_replace('/'.$wp_macIE_correction["in"].'/','/'.$wp_macIE_correction["out"].'/',$popuptitle);
! $text = preg_replace('/'.$wp_macIE_correction["in"].'/','/'.$wp_macIE_correction["out"].'/',$text);
! }
!
! if (($is_winIE) && (!isset($IEWin_bookmarklet_fix))) {
! $popuptitle = preg_replace("/\%u([0-9A-F]{4,4})/e", "'&#'.base_convert('\\1',16,10).';'", $popuptitle);
! $text = preg_replace("/\%u([0-9A-F]{4,4})/e", "'&#'.base_convert('\\1',16,10).';'", $text);
! }
!
! if (($is_gecko) && (!isset($Gecko_bookmarklet_fix))) {
! $popuptitle = preg_replace('/'.$wp_gecko_correction["in"].'/','/'.$wp_gecko_correction["out"].'/',$popuptitle);
! $text = preg_replace('/'.$wp_gecko_correction["in"].'/','/'.$wp_gecko_correction["out"].'/',$text);
! }
!
! $post_title = wp_specialchars($_REQUEST['post_title']);
! if (!empty($post_title)) {
! $post_title = stripslashes($post_title);
! } else {
! $post_title = $popuptitle;
! }
!
! $edited_post_title = wp_specialchars($post_title);
// $post_pingback needs to be set in any file that includes edit-form.php
--- 21,38 ----
<?php
} else {
! $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_title = stripslashes($post_title);
! } else {
! $post_title = $popuptitle;
! }
!
! $edited_post_title = wp_specialchars($post_title);
// $post_pingback needs to be set in any file that includes edit-form.php
More information about the cvs
mailing list