mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 20:24:26 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@48062 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -565,10 +565,26 @@ get_current_screen()->add_help_tab(
|
||||
)
|
||||
);
|
||||
|
||||
$help_sidebar_autoupdates = '';
|
||||
if ( current_user_can( 'update_plugins' ) && wp_is_auto_update_enabled_for_type( 'plugin' ) ) {
|
||||
get_current_screen()->add_help_tab(
|
||||
array(
|
||||
'id' => 'plugins-themes-auto-updates',
|
||||
'title' => __( 'Auto-updates' ),
|
||||
'content' =>
|
||||
'<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>' .
|
||||
'<p>' . __( 'Please note: Third-party themes and plugins, or custom code, may override WordPress scheduling.' ) . '</p>',
|
||||
)
|
||||
);
|
||||
|
||||
$help_sidebar_autoupdates = '<p>' . __( '<a href="https://wordpress.org/support/article/plugins-themes-auto-updates/">Learn more: Auto-updates documentation</a>' ) . '</p>';
|
||||
}
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/article/managing-plugins/">Documentation on Managing Plugins</a>' ) . '</p>' .
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
|
||||
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' .
|
||||
$help_sidebar_autoupdates
|
||||
);
|
||||
|
||||
get_current_screen()->set_screen_reader_content(
|
||||
|
||||
Reference in New Issue
Block a user