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

View File

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