Automattic / gutenberg-ramp

Control conditions under which Gutenberg loads - either from your theme code or from a UI
https://wordpress.org/plugins/gutenberg-ramp/
76 stars 15 forks source link

Reorder `gutenberg_can_edit_post_type` filter params #43

Closed brettshumaker closed 6 years ago

brettshumaker commented 6 years ago

Issue #42

The gutenberg_can_edit_post_type filter had the parameters transposed causing Gutenberg to be loaded on post types that it could not actually edit. Fixed the transposition.

brettshumaker commented 6 years ago

Thanks! Yeah, I noticed that gutenberg_can_edit_post_type() was returning the post type name instead of a boolean, then found that filter.

mattoperry commented 6 years ago

Nice one @brettshumaker ... merging.