WordPress.org

Make WordPress Core

Ticket #29719: 29719.patch

File 29719.patch, 1.2 KB (added by grapplerulrich, 4 years ago)
  • wp-includes/update.php

     
    2222 * @param bool  $force_check Whether to bypass the transient cache and force a fresh update check. Defaults to false, true if $extra_stats is set.
    2323 */
    2424function wp_version_check( $extra_stats = array(), $force_check = false ) {
    25         if ( defined( 'WP_INSTALLING' ) ) {
     25        if ( defined( 'WP_INSTALLING' ) || defined( 'WP_HTTP_BLOCK_EXTERNAL' ) ) {
    2626                return;
    2727        }
    2828
     
    187187 * @param array $extra_stats Extra statistics to report to the WordPress.org API.
    188188 */
    189189function wp_update_plugins( $extra_stats = array() ) {
    190         if ( defined( 'WP_INSTALLING' ) ) {
     190        if ( defined( 'WP_INSTALLING' ) || defined( 'WP_HTTP_BLOCK_EXTERNAL' ) ) {
    191191                return;
    192192        }
    193193
     
    344344 * @param array $extra_stats Extra statistics to report to the WordPress.org API.
    345345 */
    346346function wp_update_themes( $extra_stats = array() ) {
    347         if ( defined( 'WP_INSTALLING' ) ) {
     347        if ( defined( 'WP_INSTALLING' ) || defined( 'WP_HTTP_BLOCK_EXTERNAL' ) ) {
    348348                return;
    349349        }
    350350        global $wp_version;