Skip to content

Commit

Permalink
feat: remove functionality that disabled updates via the dashboard fo… (
Browse files Browse the repository at this point in the history
#2963)

Co-authored-by: Lukas Gaechter <lukas.gaechter@mind.ch>
  • Loading branch information
Levdbas and gchtr committed Apr 10, 2024
1 parent 72d68f8 commit 8ae9747
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ protected static function update_message_milestone() {
*/
protected static function update_message_major() {
$m = '<br><b>Warning:</b> This new version of Timber introduces some major new features which might have unknown effects on your site.';


$m .= self::disable_update();
return $m;
}

Expand Down Expand Up @@ -118,16 +115,16 @@ public static function in_plugin_update_message( $plugin_data, $r ) {
$upgrade_magnitude = self::get_upgrade_magnitude($current_version, $new_version);
if ( $upgrade_magnitude == 'milestone' ) {
$message = self::update_message_milestone();
echo '<br />'.sprintf($message);
echo '<br />' . ($message);
return;
} elseif ( $upgrade_magnitude == 'major' ) {
//major version
$message = self::update_message_major();
echo '<br />'.sprintf($message);
echo '<br />' . ($message);
return;
}
$message = self::update_message_minor();
echo '<br />'.($message);
echo '<br />' . ($message);
return;

}
Expand Down

0 comments on commit 8ae9747

Please sign in to comment.