Created
May 25, 2017 14:16
-
-
Save kjohnson/4473c0c30dd50ef4097433489f5387a3 to your computer and use it in GitHub Desktop.
Patch for Envira Albums not returning the default `admin_body_class`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/includes/admin/metaboxes.php b/includes/admin/metaboxes.php | |
| index e4c02e9..9d093a4 100644 | |
| --- a/includes/admin/metaboxes.php | |
| +++ b/includes/admin/metaboxes.php | |
| @@ -149,7 +149,7 @@ class Envira_Albums_Metaboxes { | |
| // Bail if we're not on the Envira Post Type screen. | |
| if ( 'envira_album' !== $screen->post_type ) { | |
| - return; | |
| + return $body_class; | |
| } | |
| $instance = Envira_Albums::get_instance(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment