hide auto attach on media page
This commit is contained in:
parent
c0de89ce1f
commit
83e1175f2a
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user