Package: wordpress
Version: 5.8.1+dfsg1-2
Severity: normal

Hello,

we always get update warnings from wordpress which does not make any sense as
updates should (and must) be done from the debian package. You can switch off 
the
automatic updates in the config file but it would be a nicer user experience if 
it
happened within the default config.

The patch for that would be
---
 debian/wp-config.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/wp-config.php b/debian/wp-config.php
index d4981731..5435d30f 100644
--- a/debian/wp-config.php
+++ b/debian/wp-config.php
@@ -30,6 +30,10 @@ if (file_exists($debian_file)) {
     exit(1);
 }
 
+/* Switch off automatic updates (should be done by package update) */
+if (!defined('wp_auto_update_core'))
+    define( 'wp_auto_update_core', false );
+
 /* Default value for some constants if they have not yet been set
    by the host-specific config files */
 if (!defined('ABSPATH'))
-- 

Kind regards
Katharina
-- 
Berner Fachhochschule / Bern University of Applied Sciences
IT-Services / Team Linux & Infrastructure Services
Katharina Drexel
IT System Engineer
___________________________________________________________
Dammweg 3, CH-3013 Bern
Telefon direkt +41 31 848 48 87
Telefon Servicedesk +41 31 848 48 48
katharina.dre...@bfh.ch
https://bfh.ch
https://bfh.science

Reply via email to