Navigation Menu

Skip to content

Commit

Permalink
Added --full option to csv to dumpd omains for disqus
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Dec 24, 2010
1 parent 573fe65 commit 74f2b87
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wp-to-csv.php
Expand Up @@ -41,6 +41,10 @@ function slug($s) {
$old_link = '/'.implode('/', $tree).'/'.$result['ID']."/".$result['post_name'].".html";

$new_link = '/'.str_replace('-', '/', substr($result['post_date'], 0, 10)).'/'.slug($result['post_title']).'/';
echo "{$old_link},{$new_link}\n";
if (in_array('--full', $argv)) {
echo "http://davidcramer.net{$old_link},http://justcramer.com{$new_link}\n";
} else {
echo "{$old_link},{$new_link}\n";
}
}
?>

0 comments on commit 74f2b87

Please sign in to comment.