Changeset 204733
- Timestamp:
- 02/12/2010 11:50:13 PM (16 years ago)
- Location:
- post-fixtures
- Files:
-
- 4 edited
- 7 copied
-
tags/0.2.2 (copied) (copied from post-fixtures/trunk)
-
tags/0.2.2/classes (copied) (copied from post-fixtures/trunk/classes)
-
tags/0.2.2/classes/FixtureBuilder.inc (modified) (2 diffs)
-
tags/0.2.2/classes/PostFixtures.inc (copied) (copied from post-fixtures/trunk/classes/PostFixtures.inc)
-
tags/0.2.2/fixtures (copied) (copied from post-fixtures/trunk/fixtures)
-
tags/0.2.2/post-fixtures.php (copied) (copied from post-fixtures/trunk/post-fixtures.php) (1 diff)
-
tags/0.2.2/readme.txt (copied) (copied from post-fixtures/trunk/readme.txt) (3 diffs)
-
tags/0.2.2/style.css (copied) (copied from post-fixtures/trunk/style.css)
-
trunk/classes/FixtureBuilder.inc (modified) (2 diffs)
-
trunk/post-fixtures.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
post-fixtures/tags/0.2.2/classes/FixtureBuilder.inc
r194981 r204733 85 85 if (!empty($this->current_object)) { 86 86 $this->ensure_type($this->current_object['type']); 87 return $this->{"build_{$this->current_object['type']}"}($this->current_object); 87 $result = $this->{"build_{$this->current_object['type']}"}($this->current_object); 88 unset($this->current_object); 89 return $result; 88 90 } 89 91 } … … 130 132 if (isset($obj['post']['categories'])) { 131 133 $category_ids_by_slug = array(); 134 $category_ids = array(); 132 135 foreach ($obj['post']['categories'] as $category) { 133 $category_ids_by_slug = array_merge($category_ids_by_slug, PostFixtures::create_category($category)); 136 $created_categories = PostFixtures::create_category($category); 137 $category_ids[] = array_pop(array_values($created_categories)); 138 $category_ids_by_slug = array_merge($category_ids_by_slug, $created_categories); 134 139 } 135 $category_ids = array_values($category_ids_by_slug);136 140 PostFixtures::set_post_categories($post_id, $category_ids); 137 141 } -
post-fixtures/tags/0.2.2/post-fixtures.php
r197142 r204733 4 4 Plugin URI: http://www.coswellproductions.com/wordpress/wordpress-plugins/ 5 5 Description: Tear down and build up well crafted posts, categories, meta data, and other WordPress data in a test environment. 6 Version: 0.2. 16 Version: 0.2.2 7 7 Author: John Bintz 8 8 Author URI: http://www.coswellproductions.com/wordpress/ -
post-fixtures/tags/0.2.2/readme.txt
r197142 r204733 5 5 Requires at least: 2.8 6 6 Tested up to: 2.9.1 7 Stable tag: 0.2. 17 Stable tag: 0.2.2 8 8 9 9 Post Fixtures let you quickly tear down and set up test environments within your development WordPress environment. … … 105 105 == Changelog == 106 106 107 = 0.2.2 = 108 109 * Bugfix for immediate build generation and sub-category addition when adding posts. 110 107 111 = 0.2.1 = 108 112 … … 115 119 == Upgrade Notice == 116 120 121 = 0.2.2 = 122 123 * Bugfix for immediate build generation and sub-category addition when adding posts. 124 117 125 = 0.2.1 = 118 126 -
post-fixtures/trunk/classes/FixtureBuilder.inc
r194981 r204733 85 85 if (!empty($this->current_object)) { 86 86 $this->ensure_type($this->current_object['type']); 87 return $this->{"build_{$this->current_object['type']}"}($this->current_object); 87 $result = $this->{"build_{$this->current_object['type']}"}($this->current_object); 88 unset($this->current_object); 89 return $result; 88 90 } 89 91 } … … 130 132 if (isset($obj['post']['categories'])) { 131 133 $category_ids_by_slug = array(); 134 $category_ids = array(); 132 135 foreach ($obj['post']['categories'] as $category) { 133 $category_ids_by_slug = array_merge($category_ids_by_slug, PostFixtures::create_category($category)); 136 $created_categories = PostFixtures::create_category($category); 137 $category_ids[] = array_pop(array_values($created_categories)); 138 $category_ids_by_slug = array_merge($category_ids_by_slug, $created_categories); 134 139 } 135 $category_ids = array_values($category_ids_by_slug);136 140 PostFixtures::set_post_categories($post_id, $category_ids); 137 141 } -
post-fixtures/trunk/post-fixtures.php
r197142 r204733 4 4 Plugin URI: http://www.coswellproductions.com/wordpress/wordpress-plugins/ 5 5 Description: Tear down and build up well crafted posts, categories, meta data, and other WordPress data in a test environment. 6 Version: 0.2. 16 Version: 0.2.2 7 7 Author: John Bintz 8 8 Author URI: http://www.coswellproductions.com/wordpress/ -
post-fixtures/trunk/readme.txt
r197142 r204733 5 5 Requires at least: 2.8 6 6 Tested up to: 2.9.1 7 Stable tag: 0.2. 17 Stable tag: 0.2.2 8 8 9 9 Post Fixtures let you quickly tear down and set up test environments within your development WordPress environment. … … 105 105 == Changelog == 106 106 107 = 0.2.2 = 108 109 * Bugfix for immediate build generation and sub-category addition when adding posts. 110 107 111 = 0.2.1 = 108 112 … … 115 119 == Upgrade Notice == 116 120 121 = 0.2.2 = 122 123 * Bugfix for immediate build generation and sub-category addition when adding posts. 124 117 125 = 0.2.1 = 118 126
Note: See TracChangeset
for help on using the changeset viewer.