Make WordPress Core

Changeset 65540


Ignore:
Timestamp:
11/17/2026 02:17:54 AM (35 hours ago)
Author:
peterwilsoncc
Message:

Connectors: Prompt for filesystem credentials on install.

Updates the connectors installation process to display a credentials modal when required by the filesystem type.

Previously, installing a connector plugin from Settings > Connectors failed with a generic error when the site needed filesystem credentials that hadn't been stored, for example when FS_METHOD is ftpext. The Connectors screen installs plugins through the REST API, which can't accept credentials, so the request was rejected with an fs_unavailable error.

With the Connectors JavaScript from ​https://github.com/WordPress/gutenberg/pull/78367, an fs_unavailable error now falls back to wp.updates.installPlugin(), which displays the "Connection Information" modal.

Developed in: ​https://github.com/WordPress/wordpress-develop/pull/15889

Props ekamran, westonruter, wildworks, sheldorofazeroth, harshitmshingala, rejaulalomkhan, rollybueno, gaurangsondagar, mirmpro, logicrays, manhar.
Fixes #65223.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options-connectors.php

    r64438 r65540  
    7575add_filter( 'wp_options_connectors_wp_admin_preload_paths', '_wp_connectors_preload_paths' );
    7676
     77// Used to install connector plugins when filesystem credentials are required.
     78wp_enqueue_script( 'updates' );
     79
    7780require_once ABSPATH . 'wp-admin/admin-header.php';
    7881
    … …  
    8083wp_options_connectors_wp_admin_render_page();
    8184
     85wp_print_request_filesystem_credentials_modal();
     86wp_print_admin_notice_templates();
     87
    8288require_once ABSPATH . 'wp-admin/admin-footer.php';
Note: See TracChangeset for help on using the changeset viewer.