Skip to content

Instantly share code, notes, and snippets.

@kjohnson
Created May 25, 2017 14:16
Show Gist options
  • Select an option

  • Save kjohnson/4473c0c30dd50ef4097433489f5387a3 to your computer and use it in GitHub Desktop.

Select an option

Save kjohnson/4473c0c30dd50ef4097433489f5387a3 to your computer and use it in GitHub Desktop.
Patch for Envira Albums not returning the default `admin_body_class`
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