diff --git a/classes/ComicPress.inc b/classes/ComicPress.inc index cd7feb2..5c971cb 100644 --- a/classes/ComicPress.inc +++ b/classes/ComicPress.inc @@ -95,11 +95,13 @@ class ComicPress { } function editor_max_image_size($current_max, $size) { - if (isset($this->comicpress_options['image_types'])) { - if (isset($this->comicpress_options['image_types'][$size])) { - if (isset($this->comicpress_options['image_types'][$size]['dimensions'])) { - list($width, $height) = explode('x', $this->comicpress_options['image_types'][$size]['dimensions']); - $current_max = array(intval($width), intval($height)); + if (is_string($size)) { + if (isset($this->comicpress_options['image_types'])) { + if (isset($this->comicpress_options['image_types'][$size])) { + if (isset($this->comicpress_options['image_types'][$size]['dimensions'])) { + list($width, $height) = explode('x', $this->comicpress_options['image_types'][$size]['dimensions']); + $current_max = array(intval($width), intval($height)); + } } } } diff --git a/classes/ComicPressAdmin.inc b/classes/ComicPressAdmin.inc index 136adb7..7018924 100644 --- a/classes/ComicPressAdmin.inc +++ b/classes/ComicPressAdmin.inc @@ -122,15 +122,24 @@ class ComicPressAdmin { $is_managed = $comicpress_info['managed']; } + $form_fields['comicpress_management'] = array( + 'label' => __("Let ComicPress Manage?", 'comicpress'), + 'input' => 'html', + 'html' => '' + + . '' + . '' + ); + if ($pagenow !== "media.php") { - $form_fields['auto_attach'] = array( - 'label' => __("Let ComicPress Manage?", 'comicpress'), + $form_fields['attach_parent'] = array( + 'label' => __("Change parent?", 'comicpress'), 'input' => 'html', - 'html' => '