Make WordPress Core


Ignore:
Timestamp:
06/16/2020 05:27:05 PM (4 years ago)
Author:
whyisjake
Message:

Help/About: Add help tabs to provide informations about plugin & themes auto-updates.

Adds language around how the feature works and includes links to the WordPress HelpHub pages.

Fixes: #50215.
Props: audrasjb, garrett-eclipse, paaljoachim, marybaum, pbiron, whyisjake.

File:
1 edited

Legend:

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

    r47835 r48062  
    566566);
    567567
     568$help_sidebar_autoupdates = '';
     569if ( current_user_can( 'update_plugins' ) && wp_is_auto_update_enabled_for_type( 'plugin' ) ) {
     570    get_current_screen()->add_help_tab(
     571        array(
     572            'id'      => 'plugins-themes-auto-updates',
     573            'title'   => __( 'Auto-updates' ),
     574            'content' =>
     575                    '<p>' . __( 'Auto-updates can be enabled or disabled for each individual plugin. Plugins with auto-updates enabled will display the estimated date of the next auto-update. Auto-updates depends on the WP-Cron task scheduling system.' ) . '</p>' .
     576                    '<p>' . __( 'Please note: Third-party themes and plugins, or custom code, may override WordPress scheduling.' ) . '</p>',
     577        )
     578    );
     579
     580    $help_sidebar_autoupdates = '<p>' . __( '<a href="https://wordpress.org/support/article/plugins-themes-auto-updates/">Learn more: Auto-updates documentation</a>' ) . '</p>';
     581}
     582
    568583get_current_screen()->set_help_sidebar(
    569584    '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    570585    '<p>' . __( '<a href="https://wordpress.org/support/article/managing-plugins/">Documentation on Managing Plugins</a>' ) . '</p>' .
    571     '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
     586    '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' .
     587    $help_sidebar_autoupdates
    572588);
    573589
Note: See TracChangeset for help on using the changeset viewer.