WordPress.org

Make WordPress Core

Ticket #4538: rev5767.txt

File rev5767.txt, 657 bytes (added by pgdx, 8 years ago)
Line 
1Index: utw.php
2===================================================================
3--- utw.php     (revision 5767)
4+++ utw.php     (working copy)
5@@ -206,7 +206,7 @@
6                $tags_added = 0;
7 
8                // loop through each post and add its tags to the db
9-               foreach ( $posts as $this_post ) {
10+               foreach ( (array) $posts as $this_post ) {
11 
12                        $the_post = (int) $this_post->post_id;
13                        $the_tag = (int) $this_post->tag_id;
14@@ -267,4 +267,4 @@
15 // add it to the import page!
16 register_importer('utw', 'Ultimate Tag Warrior', __('Import Ultimate Tag Warrior tags into the new native tagging structure.'), array($utw_import, 'dispatch'));
17 
18-?>
19\ No newline at end of file
20+?>