diff --git a/wp-admin/import/utw.php b/wp-admin/import/utw.php index 32df2d4fbe..916f8868a9 100644 --- a/wp-admin/import/utw.php +++ b/wp-admin/import/utw.php @@ -2,37 +2,33 @@ class UTW_Import { - function header() - { + function header() { echo '
'; echo '

'.__('Import Ultimate Tag Warrior').'

'; echo '

'.__('Steps may take a few minutes depending on the size of your database. Please be patient.').'

'; } - function footer() - { + function footer() { echo '
'; } function greet() { echo '
'; - echo '

'.__('Howdy! This imports tags from an existing Ultimate Tag Warrior 3 installation into this blog using the new Wordpress-native tagging structure.').'

'; + echo '

'.__('Howdy! This imports tags from an existing Ultimate Tag Warrior 3 installation into this blog using the new WordPress native tagging structure.').'

'; echo '

'.__('This has not been tested on any other versions of Ultimate Tag Warrior. Mileage may vary.').'

'; - echo '

'.__('To accomodate larger databases for those tag-crazy authors out there, we\'ve made this into an easy 5-step program to help you kick that nasty UTW habit. Just keep clicking along and we\'ll let you know when you\'re in the clear!').'

'; - echo '

'.__('Don\'t be stupid - backup your database before proceeding!').'

'; + echo '

'.__('To accommodate larger databases for those tag-crazy authors out there, we have made this into an easy 5-step program to help you kick that nasty UTW habit. Just keep clicking along and we will let you know when you are in the clear!').'

'; + echo '

'.__('Don’t be stupid - backup your database before proceeding!').'

'; echo '
'; - echo '

'; + echo '

'; echo '
'; echo '
'; } - function dispatch ( ) { - + function dispatch () { if ( empty( $_GET['step'] ) ) { $step = 0; - } - else { + } else { $step = (int) $_GET['step']; } @@ -40,39 +36,31 @@ class UTW_Import { $this->header(); switch ( $step ) { - case 0 : $this->greet(); break; - case 1 : $this->import_tags(); break; - case 2 : $this->import_posts(); break; - case 3: $this->import_t2p(); break; - case 4: $this->cleanup_import(); break; - } // load the footer $this->footer(); - } function import_tags ( ) { - echo '
'; - echo '

'.__('Reading UTW Tags...').'

'; + echo '

'.__('Reading UTW Tags…').'

'; $tags = $this->get_utw_tags(); @@ -93,7 +81,7 @@ class UTW_Import { $count = count($tags); - echo '

' . sprintf( __('Done! %1$d tags were read.'), $count ) . '

'; + echo '

' . sprintf( __('Done! %s tags were read.'), $count ) . '

'; echo '

' . __('The following tags were found:') . '

'; echo '
'; - } function import_posts ( ) { - echo '
'; - echo '

'.__('Reading UTW Post Tags...').'

'; + echo '

'.__('Reading UTW Post Tags…').'

'; // read in all the UTW tag -> post settings $posts = $this->get_utw_posts(); // if we didn't get any tags back, that's all there is folks! if ( !is_array($posts) ) { - echo '

' . __('No Posts were found to have tags!') . '

'; + echo '

' . __('No posts were found to have tags!') . '

'; return false; } else { @@ -146,12 +132,12 @@ class UTW_Import { $count = count($posts); - echo '

' . sprintf( __('Done! %1$d tag to post relationships were read.'), $count ) . '

'; + echo '

' . sprintf( __('Done! %s tag to post relationships were read.'), $count ) . '

'; } echo '
'; - echo '

'; + echo '

'; echo '
'; echo '
'; @@ -161,15 +147,15 @@ class UTW_Import { function import_t2p ( ) { echo '
'; - echo '

'.__('Adding Tags to Posts...').'

'; + echo '

'.__('Adding Tags to Posts…').'

'; // run that funky magic! $tags_added = $this->tag2post(); - echo '

' . sprintf( __('Done! %1$d tags where added!'), $tags_added ) . '

'; + echo '

' . sprintf( __('Done! %s tags where added!'), $tags_added ) . '

'; echo '
'; - echo '

'; + echo '

'; echo '
'; echo '
'; @@ -257,9 +243,9 @@ class UTW_Import { echo '
'; echo '

'.__('Import Complete!').'

'; - echo '

' . __('OK, so we lied about this being a 5-step program! You\'re done!') . '

'; + echo '

' . __('OK, so we lied about this being a 5-step program! You’re done!') . '

'; - echo '

' . __('Now wasn\'t that easy?') . '

'; + echo '

' . __('Now wasn’t that easy?') . '

'; echo '
'; @@ -279,6 +265,6 @@ class UTW_Import { $utw_import = new UTW_Import(); // add it to the import page! -register_importer('utw', 'Ultimate Tag Warrior', __('Import Ultimate Tag Warrior tags into the new native tagging structure.'), array ($utw_import, 'dispatch')); +register_importer('utw', 'Ultimate Tag Warrior', __('Import Ultimate Tag Warrior tags into the new native tagging structure.'), array($utw_import, 'dispatch')); ?> \ No newline at end of file