humanmade / authorship

A modern approach to author attribution in WordPress.
GNU General Public License v3.0
67 stars 7 forks source link

Ensure assets are only loaded if post type supports authors #62

Closed shadyvb closed 3 years ago

shadyvb commented 3 years ago

This makes sure post types that does not support authors would not get assets enqueued, otherwise it breaks the editor.

shadyvb commented 3 years ago

Yeah, as you said, that filter callback needs the POST param to exist, so it's not much a problem now. Thanks for the review!