Skip to content

Commit

Permalink
Merge branch 'release/1.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin de Vesine committed Oct 8, 2013
2 parents 22571c8 + c73cfdf commit 064cb89
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ramp-postid-meta-translation

## 1.0.1

- Fix WP_DEBUG warnings

## 1.0

- Initial release
11 changes: 8 additions & 3 deletions ramp-postid-meta-translation.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: RAMP Post ID Meta Translation
Plugin URI: http://crowdfavorite.com
Description: Adds the ability to select which post meta fields represent a post mapping and adds them to the batch
Version: 1.0
Version: 1.0.1
Author: Crowd Favorite
Author URI: http://crowdfavorite.com
*/
Expand Down Expand Up @@ -426,7 +426,7 @@ function pre_get_deploy_data($batch) {
// We get a reference to the object but not arrays
$this->data = $batch->data;
$existing_ids = array();
if (is_array($this->data['post_types'])) {
if (isset($this->data['post_types']) && is_array($this->data['post_types'])) {
foreach ($this->data['post_types'] as $post_type => $post_ids) {
foreach ($post_ids as $post_id) {
$this->existing_ids[] = $post_id;
Expand All @@ -440,7 +440,12 @@ function pre_get_deploy_data($batch) {
}
}
// So the server knows which ones are added, also for display
$this->data['extras'] = $this->get_extras($this->data['extras']);
if (isset($this->data['extras'])) {
$this->data['extras'] = $this->get_extras($this->data['extras']);
}
else {
$this->data['extras'] = array();
}

$batch->data = $this->data;
}
Expand Down

0 comments on commit 064cb89

Please sign in to comment.