Ticket #10245: 10245.patch
| File 10245.patch, 13.2 KB (added by , 17 years ago) |
|---|
-
wp-admin/admin-header.php
29 29 30 30 $hook_suffix = ''; 31 31 if ( isset($page_hook) ) 32 $hook_suffix = "$page_hook";32 $hook_suffix = $page_hook; 33 33 else if ( isset($plugin_page) ) 34 $hook_suffix = "$plugin_page";34 $hook_suffix = $plugin_page; 35 35 else if ( isset($pagenow) ) 36 $hook_suffix = "$pagenow";36 $hook_suffix = $pagenow; 37 37 38 38 $admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix); 39 39 ?> -
wp-admin/import/dotclear.php
407 407 // WordPressify Data 408 408 $comment_ID = (int) ltrim($comment_id, '0'); 409 409 $comment_post_ID = (int) $postarr[$post_id]; 410 $comment_approved = "$comment_pub";410 $comment_approved = $comment_pub; 411 411 $name = $wpdb->escape(csc ($comment_auteur)); 412 412 $email = $wpdb->escape($comment_email); 413 413 $web = "http://".$wpdb->escape($comment_site); -
wp-admin/import/greymatter.php
86 86 for ($i=0; $i<count($wpvarstoreset); $i += 1) { 87 87 $wpvar = $wpvarstoreset[$i]; 88 88 if (!isset($$wpvar)) { 89 if (empty($_POST[ "$wpvar"])) {90 if (empty($_GET[ "$wpvar"])) {89 if (empty($_POST[$wpvar])) { 90 if (empty($_GET[$wpvar])) { 91 91 $$wpvar = ''; 92 92 } else { 93 $$wpvar = $_GET[ "$wpvar"];93 $$wpvar = $_GET[$wpvar]; 94 94 } 95 95 } else { 96 $$wpvar = $_POST[ "$wpvar"];96 $$wpvar = $_POST[$wpvar]; 97 97 } 98 98 } 99 99 } … … 139 139 continue; 140 140 } 141 141 142 $user_info = array("user_login"=> "$user_login", "user_pass"=>"$pass1", "user_nickname"=>"$user_nickname", "user_email"=>"$user_email", "user_url"=>"$user_url", "user_ip"=>"$user_ip", "user_domain"=>"$user_domain", "user_browser"=>"$user_browser", "dateYMDhour"=>"$user_joindate", "user_level"=>"1", "user_idmode"=>"nickname");142 $user_info = array("user_login"=>$user_login, "user_pass"=>$pass1, "user_nickname"=>$user_nickname, "user_email"=>$user_email, "user_url"=>$user_url, "user_ip"=>$user_ip, "user_domain"=>$user_domain, "user_browser"=>$user_browser, "dateYMDhour"=>$user_joindate, "user_level"=>"1", "user_idmode"=>"nickname"); 143 143 $user_id = wp_insert_user($user_info); 144 144 $this->gmnames[$userdata[0]] = $user_id; 145 145 … … 171 171 $entryfile .= "0"; 172 172 }}}}}}} 173 173 174 $entryfile .= "$i";174 $entryfile .= $i; 175 175 176 176 if (is_file($entryfile.".cgi")) { 177 177 -
wp-admin/import/mt.php
155 155 for ($x = 1; $x < $y; $x ++) { 156 156 $next = array_shift($temp); 157 157 if (!(in_array($next, $authors))) 158 array_push($authors, "$next");158 array_push($authors, $next); 159 159 } 160 160 161 161 $this->fclose($handle); … … 171 171 $newname = trim(stripslashes($line)); 172 172 if ($newname == '') 173 173 $newname = 'left_blank'; //passing author names from step 1 to step 2 is accomplished by using POST. left_blank denotes an empty entry in the form. 174 array_push($formnames, "$newname");174 array_push($formnames, $newname); 175 175 } // $formnames is the array with the form entered names 176 176 177 177 foreach ($_POST['userselect'] as $user => $key) { 178 178 $selected = trim(stripslashes($key)); 179 array_push($selectnames, "$selected");179 array_push($selectnames, $selected); 180 180 } 181 181 182 182 $count = count($formnames); -
wp-admin/import/wordpress.php
153 153 for ($x = 1; $x < $y; $x ++) { 154 154 $next = array_shift($temp); 155 155 if (!(in_array($next, $authors))) 156 array_push($authors, "$next");156 array_push($authors, $next); 157 157 } 158 158 159 159 return $authors; -
wp-admin/includes/misc.php
239 239 global $$var; 240 240 241 241 if (!isset( $$var ) ) { 242 if ( empty( $_POST[ "$var"] ) ) {243 if ( empty( $_GET[ "$var"] ) )242 if ( empty( $_POST[$var] ) ) { 243 if ( empty( $_GET[$var] ) ) 244 244 $$var = ''; 245 245 else 246 $$var = $_GET[ "$var"];246 $$var = $_GET[$var]; 247 247 } else { 248 $$var = $_POST[ "$var"];248 $$var = $_POST[$var]; 249 249 } 250 250 } 251 251 } -
wp-admin/includes/post.php
1293 1293 'width' => '100%', 1294 1294 'theme' => 'advanced', 1295 1295 'skin' => 'wp_theme', 1296 'theme_advanced_buttons1' => "$mce_buttons",1297 'theme_advanced_buttons2' => "$mce_buttons_2",1298 'theme_advanced_buttons3' => "$mce_buttons_3",1299 'theme_advanced_buttons4' => "$mce_buttons_4",1300 'language' => "$mce_locale",1301 'spellchecker_languages' => "$mce_spellchecker_languages",1296 'theme_advanced_buttons1' => $mce_buttons, 1297 'theme_advanced_buttons2' => $mce_buttons_2, 1298 'theme_advanced_buttons3' => $mce_buttons_3, 1299 'theme_advanced_buttons4' => $mce_buttons_4, 1300 'language' => $mce_locale, 1301 'spellchecker_languages' => $mce_spellchecker_languages, 1302 1302 'theme_advanced_toolbar_location' => 'top', 1303 1303 'theme_advanced_toolbar_align' => 'left', 1304 1304 'theme_advanced_statusbar_location' => 'bottom', … … 1317 1317 'media_strict' => false, 1318 1318 'save_callback' => 'switchEditors.saveCallback', 1319 1319 'wpeditimage_disable_captions' => $no_captions, 1320 'plugins' => "$plugins"1320 'plugins' => $plugins 1321 1321 ); 1322 1322 1323 1323 $mce_css = trim(apply_filters('mce_css', ''), ' ,'); 1324 1324 1325 1325 if ( ! empty($mce_css) ) 1326 $initArray['content_css'] = "$mce_css";1326 $initArray['content_css'] = $mce_css; 1327 1327 1328 1328 // For people who really REALLY know what they're doing with TinyMCE 1329 1329 // You can modify initArray to add, remove, change elements of the config before tinyMCE.init -
wp-admin/includes/upgrade.php
1496 1496 // Copy files from the default theme to the site theme. 1497 1497 //$files = array('index.php', 'comments.php', 'comments-popup.php', 'footer.php', 'header.php', 'sidebar.php', 'style.css'); 1498 1498 1499 $theme_dir = @ opendir( "$default_dir");1499 $theme_dir = @ opendir($default_dir); 1500 1500 if ($theme_dir) { 1501 1501 while(($theme_file = readdir( $theme_dir )) !== false) { 1502 1502 if (is_dir("$default_dir/$theme_file")) -
wp-admin/theme-editor.php
155 155 foreach ( $themes[$theme]['Template Files'] as $template_file ) { 156 156 $description = trim( get_file_description($template_file) ); 157 157 $template_show = basename($template_file); 158 $filedesc = ( $description != $template_file ) ? "$description <span class='nonessential'>($template_show)</span>" : "$description";158 $filedesc = ( $description != $template_file ) ? "$description <span class='nonessential'>($template_show)</span>" : $description; 159 159 $filedesc = ( $template_file == $file ) ? "<span class='highlight'>$description <span class='nonessential'>($template_show)</span></span>" : $filedesc; 160 160 161 161 // If we have two files of the same name prefer the one in the Template Directory … … 171 171 ksort( $template_mapping ); 172 172 while ( list( $template_sorted_key, list( $template_file, $filedesc ) ) = each( $template_mapping ) ) : 173 173 ?> 174 <li><a href="theme-editor.php?file=<?php echo "$template_file"; ?>&theme=<?php echo urlencode($theme) ?>"><?php echo $filedesc ?></a></li>174 <li><a href="theme-editor.php?file=<?php echo $template_file; ?>&theme=<?php echo urlencode($theme) ?>"><?php echo $filedesc ?></a></li> 175 175 <?php endwhile; ?> 176 176 </ul> 177 177 <h4><?php /* translators: Theme stylesheets in theme editor */ echo _x('Styles', 'Theme stylesheets in theme editor'); ?></h4> … … 181 181 foreach ( $themes[$theme]['Stylesheet Files'] as $style_file ) { 182 182 $description = trim( get_file_description($style_file) ); 183 183 $style_show = basename($style_file); 184 $filedesc = ( $description != $style_file ) ? "$description <span class='nonessential'>($style_show)</span>" : "$description";184 $filedesc = ( $description != $style_file ) ? "$description <span class='nonessential'>($style_show)</span>" : $description; 185 185 $filedesc = ( $style_file == $file ) ? "<span class='highlight'>$description <span class='nonessential'>($style_show)</span></span>" : $filedesc; 186 186 $template_mapping[ $description ] = array( $style_file, $filedesc ); 187 187 } 188 188 ksort( $template_mapping ); 189 189 while ( list( $template_sorted_key, list( $style_file, $filedesc ) ) = each( $template_mapping ) ) : 190 190 ?> 191 <li><a href="theme-editor.php?file=<?php echo "$style_file"; ?>&theme=<?php echo urlencode($theme) ?>"><?php echo $filedesc ?></a></li>191 <li><a href="theme-editor.php?file=<?php echo $style_file; ?>&theme=<?php echo urlencode($theme) ?>"><?php echo $filedesc ?></a></li> 192 192 <?php endwhile; ?> 193 193 </ul> 194 194 <?php endif; ?> -
wp-includes/class-pop3.php
85 85 return false; 86 86 } 87 87 88 $fp = @fsockopen( "$server", $port, $errno, $errstr);88 $fp = @fsockopen($server, $port, $errno, $errstr); 89 89 90 90 if(!$fp) { 91 91 $this->ERROR = "POP3 connect: " . _("Error ") . "[$errno] [$errstr]"; -
wp-includes/class-snoopy.php
1017 1017 1018 1018 $results = implode("\r\n",$results); 1019 1019 1020 $result_headers = file( "$headerfile");1020 $result_headers = file($headerfile); 1021 1021 1022 1022 $this->_redirectaddr = false; 1023 1023 unset($this->headers); … … 1072 1072 else 1073 1073 $this->results = $results; 1074 1074 1075 unlink( "$headerfile");1075 unlink($headerfile); 1076 1076 1077 1077 return true; 1078 1078 } -
wp-includes/general-template.php
467 467 $my_year = substr($m, 0, 4); 468 468 $my_month = $wp_locale->get_month(substr($m, 4, 2)); 469 469 $my_day = intval(substr($m, 6, 2)); 470 $title = "$my_year" . ($my_month ? "$t_sep$my_month" : "") . ($my_day ? "$t_sep$my_day": "");470 $title = $my_year . ($my_month ? $t_sep . $my_month : "") . ($my_day ? $t_sep . $my_day : ""); 471 471 } 472 472 473 473 if ( !empty($year) ) { 474 474 $title = $year; 475 475 if ( !empty($monthnum) ) 476 $title .= "$t_sep". $wp_locale->get_month($monthnum);476 $title .= $t_sep . $wp_locale->get_month($monthnum); 477 477 if ( !empty($day) ) 478 $title .= "$t_sep". zeroise($day, 2);478 $title .= $t_sep . zeroise($day, 2); 479 479 } 480 480 481 481 // If there is a post … … 491 491 $tax = $tax->label; 492 492 $term = $wp_query->get_queried_object(); 493 493 $term = $term->name; 494 $title = "$tax$t_sep$term";494 $title = $tax . $t_sep . $term; 495 495 } 496 496 497 497 //If it's a search -
wp-includes/link-template.php
225 225 if ( '' != $pagestruct && ( ( isset($post->post_status) && 'draft' != $post->post_status ) || $sample ) ) { 226 226 $link = get_page_uri($id); 227 227 $link = ( $leavename ) ? $pagestruct : str_replace('%pagename%', $link, $pagestruct); 228 $link = trailingslashit(get_option('home')) . "$link";228 $link = trailingslashit(get_option('home')) . $link; 229 229 $link = user_trailingslashit($link, 'page'); 230 230 } else { 231 231 $link = trailingslashit(get_option('home')) . "?page_id=$id"; -
wp-includes/pomo/po.php
90 90 $tab = "\t"; 91 91 92 92 $replaces = array( 93 "$slash" => "$slash$slash",94 "$tab"=> '\t',95 "$quote" => "$slash$quote",93 $slash => $slash . $slash, 94 $tab => '\t', 95 $quote => $slash . $quote, 96 96 ); 97 97 $string = str_replace(array_keys($replaces), array_values($replaces), $string); 98 98 -
wp-includes/post-template.php
581 581 if ( 'number' == $next_or_number ) { 582 582 $output .= $before; 583 583 for ( $i = 1; $i < ($numpages+1); $i = $i + 1 ) { 584 $j = str_replace('%', "$i",$pagelink);584 $j = str_replace('%',$i,$pagelink); 585 585 $output .= ' '; 586 586 if ( ($i != $page) || ((!$more) && ($page==1)) ) { 587 587 if ( 1 == $i ) {