Description
This is a follow-up to #75980 (and #77089).
Normally, the Connectors screen looks as follows on a fresh install:
However, when DISALLOW_FILE_MODS is enabled in an environment, it looks like this:
This is not helpful, because a user is completely blocked from knowing how to enable the AI functionality. I know that on Pantheon, for example, all production live environments have a readonly filesystem. This is an issue for any site configured with the DISALLOW_FILE_MODS constant enabled in wp-config.php. Users will have no idea how to proceed.
Suggestions:
- A notice should be added that explains that plugin installation is disabled due to the
DISALLOW_FILE_MODS constant. Users should perhaps be advised to install the AI plugin and AI provider plugins manually as they normally install plugins on their environment. Perhaps even a WP-CLI command could be displayed for each plugin, which would be particularly useful in this case since it is likely that Git is being used to manage the site.
- There is no context for the "Not available" message. A link to the plugin on the directory should be displayed for each.
- The AI plugin banner should still be shown, but with a "Learn More" link instead of installation button.
- The paragraph at the bottom should remain, with an external link to the tag search on the localized plugin directory, e.g. https://wordpress.org/plugins/search/ai-connectors/
There is a similar issue faced by the Performance Lab plugin in the feature install screen, which also involves installing a plugin when a feature is activated. See WordPress/performance#1138 and WordPress/performance#1148 (comment).
Step-by-step reproduction instructions
- Add
define( 'DISALLOW_FILE_MODS', true ); to the wp-config.php.
- Access the Connectors screen.
Screenshots, screen recording, code snippet
No response
Environment info
- WordPress
trunk (7.1-alpha)
- Gutenberg
trunk at b30d634
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
Description
This is a follow-up to #75980 (and #77089).
Normally, the Connectors screen looks as follows on a fresh install:
However, when
DISALLOW_FILE_MODSis enabled in an environment, it looks like this:This is not helpful, because a user is completely blocked from knowing how to enable the AI functionality. I know that on Pantheon, for example, all production
liveenvironments have a readonly filesystem. This is an issue for any site configured with theDISALLOW_FILE_MODSconstant enabled inwp-config.php. Users will have no idea how to proceed.Suggestions:
DISALLOW_FILE_MODSconstant. Users should perhaps be advised to install the AI plugin and AI provider plugins manually as they normally install plugins on their environment. Perhaps even a WP-CLI command could be displayed for each plugin, which would be particularly useful in this case since it is likely that Git is being used to manage the site.There is a similar issue faced by the Performance Lab plugin in the feature install screen, which also involves installing a plugin when a feature is activated. See WordPress/performance#1138 and WordPress/performance#1148 (comment).
Step-by-step reproduction instructions
define( 'DISALLOW_FILE_MODS', true );to thewp-config.php.Screenshots, screen recording, code snippet
No response
Environment info
trunk(7.1-alpha)trunkat b30d634Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.