diff --git a/wp-content/wpalchemy/MetaBox.php b/wp-content/wpalchemy/MetaBox.php index 27bccdb..644fb4b 100755 --- a/wp-content/wpalchemy/MetaBox.php +++ b/wp-content/wpalchemy/MetaBox.php @@ -572,6 +572,10 @@ function _init() } add_action('save_post', array($this,'_save')); + + // Save meta for "attachment" post type + add_action('edit_attachment', array($this,'_save')); + add_action('add_attachment', array($this,'_save')); $filters = array('save', 'head', 'foot'); @@ -2370,4 +2374,4 @@ function clean(&$arr) } } -/* eof */ \ No newline at end of file +/* eof */