diff --git a/readme.md b/readme.md index fb89d19..41d7da3 100644 --- a/readme.md +++ b/readme.md @@ -146,6 +146,7 @@ Standard features of the following plugins will be manipulated or extended. ### UpdraftPlus * Fade out the annoying Message on Upgrade Page +* Fade out UpdraftPlus @ Admin Bar ### wpRocket diff --git a/unmus_update.php b/unmus_update.php index ae220af..222faf8 100644 --- a/unmus_update.php +++ b/unmus_update.php @@ -61,33 +61,4 @@ function unmus_themes_update() { // Disable themes auto-update email notifications. add_filter( 'auto_theme_update_send_email', '__return_false' ); -/** - * The annoying Message - * - * Plugin: UpdraftPlus - * Fades out the Message on WordPress Upgrade Page - * - * @since 0.8 - */ - -function unmus_updraft_message_invisible() { - - // Get current page - global $pagenow; - - // Run on specific pages only - if ( $pagenow == 'update-core.php') { - - echo " - - "; - } - -} -add_action( 'admin_head', 'unmus_updraft_message_invisible' ); - ?> \ No newline at end of file diff --git a/unmus_visibility.php b/unmus_visibility.php index 3f39fca..3c8a5d1 100644 --- a/unmus_visibility.php +++ b/unmus_visibility.php @@ -24,4 +24,33 @@ function unmus_disable_updraftplus_admin_bar() { } add_action('wp_before_admin_bar_render', 'unmus_disable_updraftplus_admin_bar', 999); +/** + * The annoying Message + * + * Plugin: UpdraftPlus + * Fades out the Message on WordPress Upgrade Page + * + * @since 0.8 + */ + + function unmus_updraft_message_invisible() { + + // Get current page + global $pagenow; + + // Run on specific pages only + if ( $pagenow == 'update-core.php') { + + echo " + + "; + } + +} +add_action( 'admin_head', 'unmus_updraft_message_invisible' ); + ?> \ No newline at end of file