64ad28a
diff -up wordpress/wp-admin/includes/admin-filters.php.rpm wordpress/wp-admin/includes/admin-filters.php
82fd1ae
--- wordpress/wp-admin/includes/admin-filters.php.rpm	2019-03-28 15:12:21.157820497 +0100
82fd1ae
+++ wordpress/wp-admin/includes/admin-filters.php	2019-03-28 15:12:41.792928559 +0100
e3b3a79
@@ -116,7 +116,6 @@ add_action( 'personal_options_update', '
64ad28a
 add_action( 'load-plugins.php', 'wp_plugin_update_rows', 20 ); // After wp_update_plugins() is called.
64ad28a
 add_action( 'load-themes.php', 'wp_theme_update_rows', 20 ); // After wp_update_themes() is called.
64ad28a
 
e3b3a79
-add_action( 'admin_notices', 'update_nag', 3 );
82fd1ae
 add_action( 'admin_notices', 'paused_plugins_notice', 5 );
82fd1ae
 add_action( 'admin_notices', 'paused_themes_notice', 5 );
64ad28a
 add_action( 'admin_notices', 'maintenance_nag', 10 );
64ad28a
diff -up wordpress/wp-admin/includes/class-core-upgrader.php.rpm wordpress/wp-admin/includes/class-core-upgrader.php
82fd1ae
--- wordpress/wp-admin/includes/class-core-upgrader.php.rpm	2019-03-28 00:05:54.000000000 +0100
82fd1ae
+++ wordpress/wp-admin/includes/class-core-upgrader.php	2019-03-28 15:12:21.157820497 +0100
82fd1ae
@@ -269,6 +269,9 @@ class Core_Upgrader extends WP_Upgrader
64ad28a
 	 * @return bool True if we should update to the offered version, otherwise false.
64ad28a
 	 */
64ad28a
 	public static function should_update_to_version( $offered_ver ) {
64ad28a
+		// RPM: nether allow core update
64ad28a
+		return false;
64ad28a
+
64ad28a
 		include( ABSPATH . WPINC . '/version.php' ); // $wp_version; // x.y.z
64ad28a
 
e3b3a79
 		$current_branch                 = implode( '.', array_slice( preg_split( '/[.-]/', $wp_version ), 0, 2 ) ); // x.y
64ad28a
diff -up wordpress/wp-admin/includes/class-wp-automatic-updater.php.rpm wordpress/wp-admin/includes/class-wp-automatic-updater.php
82fd1ae
--- wordpress/wp-admin/includes/class-wp-automatic-updater.php.rpm	2018-08-30 15:36:25.000000000 +0200
82fd1ae
+++ wordpress/wp-admin/includes/class-wp-automatic-updater.php	2019-03-28 15:12:21.158820502 +0100
e3b3a79
@@ -38,7 +38,7 @@ class WP_Automatic_Updater {
e3b3a79
 		}
64ad28a
 
64ad28a
 		// More fine grained control can be done through the WP_AUTO_UPDATE_CORE constant and filters.
64ad28a
-		$disabled = defined( 'AUTOMATIC_UPDATER_DISABLED' ) && AUTOMATIC_UPDATER_DISABLED;
64ad28a
+		$disabled = !defined( 'AUTOMATIC_UPDATER_DISABLED' ) || AUTOMATIC_UPDATER_DISABLED;
64ad28a
 
64ad28a
 		/**
64ad28a
 		 * Filters whether to entirely disable background updates.
64ad28a
diff -up wordpress/wp-admin/includes/update.php.rpm wordpress/wp-admin/includes/update.php
82fd1ae
--- wordpress/wp-admin/includes/update.php.rpm	2019-03-22 02:08:51.000000000 +0100
82fd1ae
+++ wordpress/wp-admin/includes/update.php	2019-03-28 15:12:21.158820502 +0100
e3b3a79
@@ -301,7 +301,7 @@ function update_right_now_message() {
64ad28a
 		$cur = get_preferred_from_update_core();
64ad28a
 
e3b3a79
 		if ( isset( $cur->response ) && $cur->response == 'upgrade' ) {
64ad28a
-			$msg .= '' . sprintf( __( 'Update to %s' ), $cur->current ? $cur->current : __( 'Latest' ) ) . ' ';
64ad28a
+			$msg .= '';
e3b3a79
 		}
64ad28a
 	}
64ad28a
 
64ad28a
diff -up wordpress/wp-includes/load.php.rpm wordpress/wp-includes/load.php
82fd1ae
--- wordpress/wp-includes/load.php.rpm	2019-03-27 01:03:51.000000000 +0100
82fd1ae
+++ wordpress/wp-includes/load.php	2019-03-28 15:12:21.158820502 +0100
82fd1ae
@@ -1418,7 +1418,7 @@ function wp_is_file_mod_allowed( $contex
64ad28a
 	 * @param bool   $file_mod_allowed Whether file modifications are allowed.
64ad28a
 	 * @param string $context          The usage context.
64ad28a
 	 */
64ad28a
-	return apply_filters( 'file_mod_allowed', ! defined( 'DISALLOW_FILE_MODS' ) || ! DISALLOW_FILE_MODS, $context );
64ad28a
+	return apply_filters( 'file_mod_allowed', defined( 'DISALLOW_FILE_MODS' ) && ! DISALLOW_FILE_MODS, $context );
64ad28a
 }
5efb676
 
5efb676
 /**
64ad28a
diff -up wordpress/wp-includes/update.php.rpm wordpress/wp-includes/update.php
82fd1ae
--- wordpress/wp-includes/update.php.rpm	2019-01-16 04:38:49.000000000 +0100
82fd1ae
+++ wordpress/wp-includes/update.php	2019-03-28 15:12:21.158820502 +0100
e3b3a79
@@ -770,10 +770,6 @@ function _maybe_update_themes() {
64ad28a
  * @since 3.1.0
64ad28a
  */
64ad28a
 function wp_schedule_update_checks() {
e3b3a79
-	if ( ! wp_next_scheduled( 'wp_version_check' ) && ! wp_installing() ) {
e3b3a79
-		wp_schedule_event( time(), 'twicedaily', 'wp_version_check' );
e3b3a79
-	}
64ad28a
-
e3b3a79
 	if ( ! wp_next_scheduled( 'wp_update_plugins' ) && ! wp_installing() ) {
e3b3a79
 		wp_schedule_event( time(), 'twicedaily', 'wp_update_plugins' );
e3b3a79
 	}