Changeset 1994 for trunk/wp-admin/bookmarklet.php
- Timestamp:
- 12/23/2004 12:08:43 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/bookmarklet.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/bookmarklet.php
r1993 r1994 21 21 <?php 22 22 } else { 23 $popuptitle = wp_specialchars(stripslashes($popuptitle)); 24 $text = wp_specialchars(stripslashes(urldecode($text))); 25 26 /* big funky fixes for browsers' javascript bugs */ 27 28 if (($is_macIE) && (!isset($IEMac_bookmarklet_fix))) { 29 $popuptitle = preg_replace('/'.$wp_macIE_correction["in"].'/','/'.$wp_macIE_correction["out"].'/',$popuptitle); 30 $text = preg_replace('/'.$wp_macIE_correction["in"].'/','/'.$wp_macIE_correction["out"].'/',$text); 31 } 32 33 if (($is_winIE) && (!isset($IEWin_bookmarklet_fix))) { 34 $popuptitle = preg_replace("/\%u([0-9A-F]{4,4})/e", "'&#'.base_convert('\\1',16,10).';'", $popuptitle); 35 $text = preg_replace("/\%u([0-9A-F]{4,4})/e", "'&#'.base_convert('\\1',16,10).';'", $text); 36 } 37 38 if (($is_gecko) && (!isset($Gecko_bookmarklet_fix))) { 39 $popuptitle = preg_replace('/'.$wp_gecko_correction["in"].'/','/'.$wp_gecko_correction["out"].'/',$popuptitle); 40 $text = preg_replace('/'.$wp_gecko_correction["in"].'/','/'.$wp_gecko_correction["out"].'/',$text); 41 } 42 43 $post_title = wp_specialchars($_REQUEST['post_title']); 44 if (!empty($post_title)) { 45 $post_title = stripslashes($post_title); 46 } else { 47 $post_title = $popuptitle; 48 } 49 50 $edited_post_title = wp_specialchars($post_title); 23 $popuptitle = wp_specialchars(stripslashes($popuptitle)); 24 $text = wp_specialchars(stripslashes(urldecode($text))); 25 26 $popuptitle = funky_javascript_fix($popuptitle); 27 $text = funky_javascript_fix($text); 28 29 $post_title = wp_specialchars($_REQUEST['post_title']); 30 if (!empty($post_title)) { 31 $post_title = stripslashes($post_title); 32 } else { 33 $post_title = $popuptitle; 34 } 35 36 $edited_post_title = wp_specialchars($post_title); 51 37 52 38 // $post_pingback needs to be set in any file that includes edit-form.php
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)