hide auto attach on media page

This commit is contained in:
John Bintz 2009-07-13 04:26:26 -04:00
parent c0de89ce1f
commit 83e1175f2a
1 changed files with 12 additions and 8 deletions

View File

@ -53,6 +53,8 @@ class ComicPressAddonCore extends ComicPressAddon {
}
function setup_comic_metadata_buttons($form_fields, $post) {
global $pagenow;
$comic_image_types = array(
'none' => __('Not a comic', 'comicpress'),
'comic' => __('Comic', 'comicpress'),
@ -83,6 +85,7 @@ class ComicPressAddonCore extends ComicPressAddon {
'html' => '<center>' . implode("\n", $field_html_lines) . '</center>'
);
if ($pagenow !== "media.php") {
$form_fields['auto_attach'] = array(
'label' => __("Auto-attach?", 'comicpress'),
'input' => 'html',
@ -90,6 +93,7 @@ class ComicPressAddonCore extends ComicPressAddon {
. __('Attach to this post w/o needing to insert into post', 'comicpress')
. '</em>'
);
}
return $form_fields;
}