Make WordPress Core

Changeset 59094


Ignore:
Timestamp:
09/26/2024 01:48:06 PM (2 months ago)
Author:
audrasjb
Message:

Help/About: Add plugin dependencies help tab on Plugins screen.

This changeset adds a help tab added about plugin dependencies on the Plugins screen.

Follow-up to [57545].

Fixes #60466.
See #22316.
Props desrosj, swissspidy, adarshposimyth, audrasjb, NekoJonez, DorZki, Boniu91, Ankit-K-Gupta, sigurdwatt.

File:
1 edited

Legend:

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

    r58975 r59094  
    601601
    602602    $help_sidebar_autoupdates = '<p>' . __( '<a href="https://wordpress.org/documentation/article/plugins-themes-auto-updates/">Documentation on Auto-updates</a>' ) . '</p>';
     603}
     604
     605if ( current_user_can( 'install_plugins' ) ) {
     606    get_current_screen()->add_help_tab(
     607        array(
     608            'id'      => 'plugins-dependencies',
     609            'title'   => __( 'Dependencies' ),
     610            'content' =>
     611                '<p>' . __( 'Plugin Dependencies aims to make the process of installing and activating add-ons (dependents) and the plugins they rely on (dependencies) consistent and easy.' ) . '</p>' .
     612                '<p>' . __( 'If a required plugin is deleted, a notice will be displayed on the Plugin administration screen informing the user that there is some missing dependencies to install and/or activate. Additionally, each plugin whose dependencies are not met will have an error notice on their plugin row.' ) . '</p>' .
     613                '<p>' . __( 'If a dependent plugin is missing some dependencies, its activation button will be disabled until the required dependencies are activated.' ) . '</p>',
     614        )
     615    );
    603616}
    604617
Note: See TracChangeset for help on using the changeset viewer.