Changeset 197142
- Timestamp:
- 01/23/2010 04:39:04 PM (16 years ago)
- Location:
- post-fixtures
- Files:
-
- 4 edited
- 6 copied
-
tags/0.2.1 (copied) (copied from post-fixtures/trunk)
-
tags/0.2.1/classes (copied) (copied from post-fixtures/trunk/classes)
-
tags/0.2.1/classes/PostFixtures.inc (modified) (2 diffs)
-
tags/0.2.1/fixtures (copied) (copied from post-fixtures/trunk/fixtures)
-
tags/0.2.1/post-fixtures.php (copied) (copied from post-fixtures/trunk/post-fixtures.php) (1 diff)
-
tags/0.2.1/readme.txt (copied) (copied from post-fixtures/trunk/readme.txt) (3 diffs)
-
tags/0.2.1/style.css (copied) (copied from post-fixtures/trunk/style.css)
-
trunk/classes/PostFixtures.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.1/classes/PostFixtures.inc
r194981 r197142 6 6 class PostFixtures { 7 7 var $messages; 8 var $created_categories = array(); 8 9 9 10 /** … … 263 264 foreach ($nodes as $node) { 264 265 $joined_nodes[] = $node; 265 $parent = $category_ids_by_slug[implode('/', $joined_nodes)] = wp_insert_category(array('cat_name' => $node, 'category_nicename' => $node, 'category_parent' => $parent)); 266 $key = implode('/', $joined_nodes); 267 268 if (isset($this->created_categories[$key])) { 269 $parent = $this->created_categories[$key]; 270 } else { 271 $parent = wp_insert_category(array('cat_name' => $node, 'category_nicename' => $node, 'category_parent' => $parent)); 272 $this->created_categories[$key] = $parent; 273 } 274 $category_ids_by_slug[$key] = $parent; 266 275 } 267 276 return $category_ids_by_slug; -
post-fixtures/tags/0.2.1/post-fixtures.php
r194981 r197142 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 6 Version: 0.2.1 7 7 Author: John Bintz 8 8 Author URI: http://www.coswellproductions.com/wordpress/ -
post-fixtures/tags/0.2.1/readme.txt
r194981 r197142 5 5 Requires at least: 2.8 6 6 Tested up to: 2.9.1 7 Stable tag: 0.2 7 Stable tag: 0.2.1 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.1 = 108 109 * Bugfix for multiple generated nested categories. 110 107 111 = 0.2 = 108 112 … … 111 115 == Upgrade Notice == 112 116 117 = 0.2.1 = 118 119 * Bugfix for multiple generated nested categories. 120 113 121 = 0.2 = 114 122 -
post-fixtures/trunk/classes/PostFixtures.inc
r194981 r197142 6 6 class PostFixtures { 7 7 var $messages; 8 var $created_categories = array(); 8 9 9 10 /** … … 263 264 foreach ($nodes as $node) { 264 265 $joined_nodes[] = $node; 265 $parent = $category_ids_by_slug[implode('/', $joined_nodes)] = wp_insert_category(array('cat_name' => $node, 'category_nicename' => $node, 'category_parent' => $parent)); 266 $key = implode('/', $joined_nodes); 267 268 if (isset($this->created_categories[$key])) { 269 $parent = $this->created_categories[$key]; 270 } else { 271 $parent = wp_insert_category(array('cat_name' => $node, 'category_nicename' => $node, 'category_parent' => $parent)); 272 $this->created_categories[$key] = $parent; 273 } 274 $category_ids_by_slug[$key] = $parent; 266 275 } 267 276 return $category_ids_by_slug; -
post-fixtures/trunk/post-fixtures.php
r194981 r197142 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 6 Version: 0.2.1 7 7 Author: John Bintz 8 8 Author URI: http://www.coswellproductions.com/wordpress/ -
post-fixtures/trunk/readme.txt
r194981 r197142 5 5 Requires at least: 2.8 6 6 Tested up to: 2.9.1 7 Stable tag: 0.2 7 Stable tag: 0.2.1 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.1 = 108 109 * Bugfix for multiple generated nested categories. 110 107 111 = 0.2 = 108 112 … … 111 115 == Upgrade Notice == 112 116 117 = 0.2.1 = 118 119 * Bugfix for multiple generated nested categories. 120 113 121 = 0.2 = 114 122
Note: See TracChangeset
for help on using the changeset viewer.