Conversion complete. See below for any reported problems that might need your attention.

You may now remove this plugin as well as the text formatting plugin(s) you were using. If you deactivated any plugins that use shortcodes, you should now reactivate them.

'); ?>

This tool applies all content filters to posts and comments and saves them back to the database. This is useful if you have been using Textile or Markdown (for example) and you want to switch to plain HTML.

If you are using a plugin that uses short tags -- e.g. [thing] -- and you want to keep using it, you should deactivate it before running this conversion. Otherwise, that too will be converted to its full HTML equivalent.

Press the button below to conver the format of all your posts.

queries. seconds.

get_results("SELECT ID, post_content FROM $wpdb->posts ORDER BY ID"); foreach ($allposts as $thispost) { // clear from previous iteration $my_post = array(); $my_post['ID'] = $thispost->ID; $my_post['post_content'] = apply_filters('the_content', $thispost->post_content); $my_post['post_content'] = str_replace('http://oviedos.com.mx/data/files/blog/','http://oviedo.mx/wp-content/uploads/2010/08/',$my_post['post_content']); $my_post['post_content'] = str_replace('[more]','',$my_post['post_content']); $arrpalabra = str_word_count($my_post['post_content'],2,'_1234567890:./"\'<>[]=-ñÑáéíóúÁÉÍÓÚ,?¿!¡#@$%&()+*{};|'); $cad1 = 'src="http://oviedo.mx//data/phoo/'; $cad2 = 'src="http://oviedo.mx/'; foreach($arrpalabra as $indice=> $valor){ if(substr($valor,0,strlen($cad1)) == $cad1){ $arr = explode('/',substr($valor,strlen($cad1))); $arr2 = explode('_',$arr[0]); $new = $arr2[0].'/08/'; if(count($arr) == 3){ if($arr[1] == 'medium'){ $arr3 = explode('.',$arr[2]); $new .= $arr3[0].'-300x233.'.$arr3[1]; }elseif($arr[1] == 'thumb'){ $arr3 = explode('.',$arr[2]); $new .= $arr3[0].'-150x150.'.$arr3[1]; } }else{ $new .= $arr[1]; } $arrpalabra[$indice] = $cad2.$new; } } $my_post['post_content'] = implode(' ',$arrpalabra); if (!empty($my_post['post_content'])) { wp_update_post( $my_post ); _e( " Converted post #".$my_post['ID'].".
"); } else _e( " Problem with post #".$my_post['ID'].". You should check it manually.
"); flush(); } _e( '

Converting All Comments:

'); flush(); $allcomments = $wpdb->get_results("SELECT comment_ID, comment_content FROM $wpdb->comments ORDER BY comment_ID"); foreach ($allcomments as $thiscomment) { // clear from previous iteration $my_post = array(); $my_post['comment_ID'] = $thiscomment->comment_ID; $my_post['comment_content'] = apply_filters('the_content', $thiscomment->comment_content); if (!empty($my_post['comment_content'])) { wp_update_comment( $my_post ); _e( " Converted comment #".$my_post['comment_ID'].".
"); } else _e( " Problem with comment #".$my_post['comment_ID'].". You should check it manually.
"); flush(); } ?>