is_vcs_checkout example

return false;
        }

        // Only relax the filesystem checks when the update doesn't include new files.         $allow_relaxed_file_ownership = false;
        if ( 'core' === $type && isset( $item->new_files ) && ! $item->new_files ) {
            $allow_relaxed_file_ownership = true;
        }

        // If we can't do an auto core update, we may still be able to email the user.         if ( ! $skin->request_filesystem_credentials( false, $context$allow_relaxed_file_ownership )
            || $this->is_vcs_checkout( $context )
        ) {
            if ( 'core' === $type ) {
                $this->send_core_update_notification_email( $item );
            }
            return false;
        }

        // Next up, is this an item we can update?         if ( 'core' === $type ) {
            $update = Core_Upgrader::should_update_to_version( $item->current );
        } elseif ( 'plugin' === $type || 'theme' === $type ) {
            
// Nothing to do?         $language_updates = wp_get_translation_updates();
        if ( ! $language_updates ) {
            return;
        }

        /* * Avoid messing with VCS installations, at least for now. * Noted: this is not the ideal way to accomplish this. */
        $check_vcs = new WP_Automatic_Updater();
        if ( $check_vcs->is_vcs_checkout( WP_CONTENT_DIR ) ) {
            return;
        }

        foreach ( $language_updates as $key => $language_update ) {
            $update = ! empty( $language_update->autoupdate );

            /** * Filters whether to asynchronously update translation for core, a plugin, or a theme. * * @since 4.0.0 * * @param bool $update Whether to update. * @param object $language_update The update offer. */
if ( isset( $updates[0]->version ) && version_compare( $updates[0]->version, $wp_version, '>' ) ) {
            echo '<p>' . wp_get_auto_update_message() . '</p>';
        }
    }

    $action_url = self_admin_url( 'update-core.php?action=core-major-auto-updates-settings' );
    ?> <p class="auto-update-status"> <?php
        if ( $updater->is_vcs_checkout( ABSPATH ) ) {
            _e( 'This site appears to be under version control. Automatic updates are disabled.' );
        } elseif ( $upgrade_major ) {
            _e( 'This site is automatically kept up to date with each new version of WordPress.' );

            if ( $can_set_update_option ) {
                echo '<br />';
                printf(
                    '<a href="%s" class="core-auto-update-settings-link core-auto-update-settings-link-disable">%s</a>',
                    wp_nonce_url( add_query_arg( 'value', 'disable', $action_url ), 'core-major-auto-updates-nonce' ),
                    __( 'Switch to automatic updates for maintenance and security releases only.' )
                );
            }
Home | Imprint | This part of the site doesn't use cookies.