wphooks.info - allow_major_auto_core_updates

allow_major_auto_core_updates

The hook occurs in the following file:

wp-admin/includes/class-core-upgrader.php:
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
		// 5: Major version updates (3.7.0 -> 3.8.0 -> 3.9.1)
		if ( version_compare( $new_branch, $current_branch, '>' ) ) {

			/**
			 * Filters whether to enable major automatic core updates.
			 *
			 * @since 3.7.0
			 *
			 * @param bool $upgrade_major Whether to enable major automatic core updates.
			 */
			return apply_filters( 'allow_major_auto_core_updates', $upgrade_major );
		}

		// If we're not sure, we don't want it
		return false;
	}

	/**
	 * Compare the disk file checksums against the expected checksums.
	 *