Skip to content

Commit 24dfb2e

Browse files
authored
Merge pull request #62 from circuscode/feature-updraftplus-message
Visibility UpdraftPlus Message
2 parents ee28f2d + 2714578 commit 24dfb2e

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

readme.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ Standard features of the following plugins will be manipulated or extended.
109109
* Podlove Publisher
110110
* Podlove Web Player
111111
* The SEO Framework
112+
* UpdraftPlus
112113
* wpRocket
113114

114115
### Activity Pub
@@ -140,6 +141,10 @@ Standard features of the following plugins will be manipulated or extended.
140141
* Create Cannonical URLs for TootPress and Mathilda Pages
141142
* Create NEXT and PREV Links for TootPress and Mathilda Pages
142143

144+
### UpdraftPlus
145+
146+
* Fade out the annoying Message on Upgrade Page
147+
143148
### wpRocket
144149

145150
* Remove TootPress Pages from Cache if new Toots have been loaded
@@ -208,6 +213,7 @@ Release pending.
208213
* Added: Remove Mastodon Account @ Federated Comment
209214
* Added: Block Editor Support Custom Post Type Pinseldisko
210215
* Added: Block Editor Support Custom Post Type Raketenstaub
216+
* Added: Fade Out UpdraftPlus Upgrade Message
211217
* Changed: Maintenance Mode Internal Processing
212218
* Changed: Depreciated TSF Filters replaced with the_seo_framework_meta_render_data
213219
* Removed: Adding Current Menu Item

unmus_update.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,35 @@ function unmus_themes_update() {
6161
// Disable themes auto-update email notifications.
6262
add_filter( 'auto_theme_update_send_email', '__return_false' );
6363

64+
/**
65+
* The annoying Message
66+
*
67+
* Plugin: UpdraftPlus
68+
* Fades out the Message on WordPress Upgrade Page
69+
*
70+
* @since 0.8
71+
*/
72+
73+
function unmus_updraft_message_invisible() {
74+
75+
// Get current page
76+
global $pagenow;
77+
78+
// Run on specific pages only
79+
if ( $pagenow == 'update-core.php') {
80+
81+
echo "
82+
<style type='text/css'>
83+
.updraft-ad-container {
84+
display:none !important;
85+
}
86+
</style>
87+
";
88+
}
89+
90+
}
91+
if(function_exists('updraftplus_list_cron_schedules')) {
92+
add_action( 'admin_head', 'unmus_updraft_message_invisible' );
93+
}
94+
6495
?>

0 commit comments

Comments
 (0)