lumenlearning/candela — pull request #17 by drlippman (2014-08-16 19:03:13+00:00)
Title: Add whole-import citation and licensing

Again, per the request for more granular pull requests.

When importing an entire book from a single source, it would be convenient to be able to specify attribution and licensing once on the import page, rather than having to specify on every single page individually.

This change allows that by making minimal changes to the import.php template, adding a trigger to display meta boxes from plugins that register their add add_meta_boxes with the post_type "pb_import".

In the Candela plugins, some minor changes had to be made to the save() function to look up post_type, since post_type is not available in $_POST on import.