Commit f73036df12 for wordpress.org
commit f73036df12fc1e94c927bfb41a96b52454fac59b
Author: peterwilsoncc <peterwilsoncc@git.wordpress.org>
Date: Tue Nov 17 02:19:03 2026 +0000
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.
Built from https://develop.svn.wordpress.org/trunk@65540
git-svn-id: http://core.svn.wordpress.org/trunk@64613 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-admin/options-connectors.php b/wp-admin/options-connectors.php
index eacb9bdb5f..60e29d158d 100644
--- a/wp-admin/options-connectors.php
+++ b/wp-admin/options-connectors.php
@@ -74,9 +74,15 @@ function _wp_connectors_preload_paths( array $preload_paths ): array {
}
add_filter( 'wp_options_connectors_wp_admin_preload_paths', '_wp_connectors_preload_paths' );
+// Used to install connector plugins when filesystem credentials are required.
+wp_enqueue_script( 'updates' );
+
require_once ABSPATH . 'wp-admin/admin-header.php';
// Render the Connectors page.
wp_options_connectors_wp_admin_render_page();
+wp_print_request_filesystem_credentials_modal();
+wp_print_admin_notice_templates();
+
require_once ABSPATH . 'wp-admin/admin-footer.php';
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 5e560ed7aa..ad45720d07 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.2-beta5-65539';
+$wp_version = '7.2-beta5-65540';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.