Skip to content
This repository has been archived by the owner on Apr 5, 2020. It is now read-only.

Commit

Permalink
Merge pull request audrasjb#50 from WordPress/fix/issue-49
Browse files Browse the repository at this point in the history
Network > Sites > Edit > Themes screen doesn't have the Autoupdates column
  • Loading branch information
audrasjb authored Apr 2, 2020
2 parents d5c9c7e + 754af94 commit b8b6fb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Enqueue styles and scripts
*/
function wp_autoupdates_enqueues( $hook ) {
if ( ! in_array( $hook, array( 'plugins.php', 'themes.php', 'update-core.php' ) ) ) {
if ( ! in_array( $hook, array( 'plugins.php', 'themes.php', 'site-themes.php', 'update-core.php' ) ) ) {
return;
}
wp_register_style( 'wp-autoupdates', plugin_dir_url( __FILE__ ) . 'css/wp-autoupdates.css', array() );
Expand Down Expand Up @@ -1057,6 +1057,7 @@ function wp_autoupdates_add_themes_autoupdates_column( $columns ) {
return $columns;
}
add_filter( 'manage_themes-network_columns', 'wp_autoupdates_add_themes_autoupdates_column' );
add_filter( 'manage_site-themes-network_columns', 'wp_autoupdates_add_themes_autoupdates_column' );


/**
Expand Down

0 comments on commit b8b6fb7

Please sign in to comment.