WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Post Slug After Import

[Resolved] Post Slug After Import

Viewing 3 replies - 1 through 3 (of 3 total)
  • Just FYI, I re-imported a post from a previous import and the post slugs are missing the dashes, whereas the first time the post slug was properly formatted. It looks like this is an issue related to the recent upgrade.

    OK, I found the issue — looks like these lines in wp_ultimate_csv_importer.php are the culprit:

    174-186:

    // Scandinavian characters
    function smack_marks_scandiConverter($text){
        $returnvalue="";
        for($i=0;$i<strlen($text);$i++){
            $smacker=hexdec(rawurlencode(substr($text, $i, 1)));
            if($smacker<32||$smacker>1114111){
                $returnvalue.=substr($text, $i, 1);
            }else{
                $returnvalue.="&#".$smacker.";";
            }
        }
        return $returnvalue;
    }

    and:

    394 $data_array['post_title'] = smack_marks_scandiConverter($data_array['post_title']);
    395 $data_array['post_content'] = smack_marks_scandiConverter($data_array['post_content']);
    Plugin Author smackcoders

    @smackcoders

    Yes, this issue is fixed and will update the repo soon. Let me know if it exists even after upgrading to 2.6.0.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Post Slug After Import’ is closed to new replies.