Changeset 3276
- Timestamp:
- 12/07/2005 12:36:07 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-functions.php
r3269 r3276 242 242 // Get an existing post and format it for editing. 243 243 function get_post_to_edit($id) { 244 global $richedit; 245 $richedit = ( 'true' == get_user_option('rich_editing') ) ? true : false; 246 244 247 $post = get_post($id); 245 248 246 $post->post_content = format_to_edit($post->post_content );249 $post->post_content = format_to_edit($post->post_content, $richedit); 247 250 $post->post_content = apply_filters('content_edit_pre', $post->post_content); 248 251 … … 300 303 301 304 function get_comment_to_edit($id) { 305 global $richedit; 306 $richedit = ( 'true' == get_user_option('rich_editing') ) ? true : false; 307 302 308 $comment = get_comment($id); 303 309 304 $comment->comment_content = format_to_edit($comment->comment_content );310 $comment->comment_content = format_to_edit($comment->comment_content, $richedit); 305 311 $comment->comment_content = apply_filters('comment_edit_pre', $comment->comment_content); 306 312 -
trunk/wp-admin/import/blogger.php
r3260 r3276 477 477 $commenthour = '00'; 478 478 $comment_date = "$commentyear-$commentmonth-$commentday $commenthour:$commentminute:$commentsecond"; 479 $comment_author = addslashes(strip_tags( html_entity_decode($commentinfo[1])));479 $comment_author = addslashes(strip_tags($commentinfo[1])); 480 480 if ( strpos($commentinfo[1], 'a href') ) { 481 481 $comment_author_parts = explode('"', htmlentities($commentinfo[1])); -
trunk/wp-content/themes/default/functions.php
r3006 r3276 27 27 function kubrick_upper_color() { 28 28 if ( strstr( kubrick_header_image_url(), 'header-img.php?' ) ) 29 return substr( kubrick_header_image(), 2 4, 6 );29 return substr( kubrick_header_image(), 21, 6 ); 30 30 else 31 31 return '69aee7'; … … 34 34 function kubrick_lower_color() { 35 35 if ( strstr( kubrick_header_image_url(), 'header-img.php?' ) ) 36 return substr( kubrick_header_image(), 3 7, 6 );36 return substr( kubrick_header_image(), 34, 6 ); 37 37 else 38 38 return '4180b6'; -
trunk/wp-content/themes/default/images/header-img.php
r2910 r3276 13 13 if ( isset($_GET[$var]) ) { 14 14 foreach ( $subvars as $index => $subvar ) { 15 $$subvar = hexdec( substr( html_entity_decode($_GET[$var]), $index, 2) );15 $$subvar = hexdec( substr($_GET[$var], $index, 2) ); 16 16 if ( $$subvar < 0 || $$subvar > 255 ) 17 17 $default = true; -
trunk/wp-includes/functions-formatting.php
r3273 r3276 493 493 494 494 495 function format_to_edit($content ) {495 function format_to_edit($content, $richedit = false) { 496 496 $content = apply_filters('format_to_edit', $content); 497 $content = htmlspecialchars($content); 497 if (! $richedit ) 498 $content = htmlspecialchars($content); 498 499 return $content; 499 500 } … … 998 999 999 1000 $output = $text; 1000 $output = html_entity_decode($output); // undoes format_to_edit()1001 1001 $output = convert_chars($output); 1002 1002 $output = wpautop($output); -
trunk/wp-includes/js/tinymce/tiny_mce.js
r3265 r3276 5308 5308 // Call custom cleanup code 5309 5309 value = tinyMCE.storeAwayURLs(value); 5310 value = tinyMCE._customCleanup(this, "insert_to_editor", value);5310 //value = tinyMCE._customCleanup(this, "insert_to_editor", value); 5311 5311 tinyMCE._setHTML(doc, value); 5312 5312 tinyMCE.setInnerHTML(doc.body, tinyMCE._cleanupHTML(this, doc, tinyMCE.settings, doc.body));
Note: See TracChangeset
for help on using the changeset viewer.