Make WordPress Core

Ticket #60466: 6806.2.diff

File 6806.2.diff, 1.5 KB (added by DorZki, 12 months ago)
  • src/wp-admin/plugins.php

    diff --git a/src/wp-admin/plugins.php b/src/wp-admin/plugins.php
    index 7045f16661fe..1c6223dc33ad 100644
    a b  
    602602        $help_sidebar_autoupdates = '<p>' . __( '<a href="https://wordpress.org/documentation/article/plugins-themes-auto-updates/">Documentation on Auto-updates</a>' ) . '</p>';
    603603}
    604604
     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 addons (dependents) and the plugins they rely on (dependencies) consistent and easy.' ) . '</p>' .
     612                                '<p>' . __( 'If a dependency plugin is deleted via FTP or deployment, a notice will be displayed on the Plugin administration screens, informing the user that there are missing dependencies to install and/or activate. Additionally, each dependent whose dependencies are no longer met will have an error notice in their plugin row.' ) . '</p>' .
     613                                '<p>' . __( 'If a dependent plugin is missing some dependencies, its activation button is disabled until the related dependencies are activated.' ) . '</p>',
     614                )
     615        );
     616}
     617
    605618get_current_screen()->set_help_sidebar(
    606619        '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    607620        '<p>' . __( '<a href="https://wordpress.org/documentation/article/manage-plugins/">Documentation on Managing Plugins</a>' ) . '</p>' .