WordPress.org

Make WordPress Core

Changeset 48095


Ignore:
Timestamp:
06/19/2020 09:12:34 PM (6 months ago)
Author:
SergeyBiryukov
Message:

Help/About: Move "Learn more: Auto-updates documentation" link about "Support", for consistency with other screens.

Follow-up to [48062].

See #50215.

Location:
trunk/src/wp-admin
Files:
4 edited

Legend:

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

    r48062 r48095  
    304304
    305305$help_sidebar_autoupdates = '';
     306
    306307if ( current_user_can( 'update_themes' ) && wp_is_auto_update_enabled_for_type( 'theme' ) ) {
    307308    get_current_screen()->add_help_tab(
     
    321322    '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    322323    '<p>' . __( '<a href="https://codex.wordpress.org/Network_Admin_Themes_Screen">Documentation on Network Themes</a>' ) . '</p>' .
    323     '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' .
    324     $help_sidebar_autoupdates
     324    $help_sidebar_autoupdates .
     325    '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    325326);
    326327
  • trunk/src/wp-admin/plugins.php

    r48062 r48095  
    567567
    568568$help_sidebar_autoupdates = '';
     569
    569570if ( current_user_can( 'update_plugins' ) && wp_is_auto_update_enabled_for_type( 'plugin' ) ) {
    570571    get_current_screen()->add_help_tab(
     
    584585    '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    585586    '<p>' . __( '<a href="https://wordpress.org/support/article/managing-plugins/">Documentation on Managing Plugins</a>' ) . '</p>' .
    586     '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' .
    587     $help_sidebar_autoupdates
     587    $help_sidebar_autoupdates .
     588    '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    588589);
    589590
  • trunk/src/wp-admin/themes.php

    r48092 r48095  
    183183} // End if 'edit_theme_options' && 'customize'.
    184184
     185$help_sidebar_autoupdates = '';
     186
    185187// Help tab: Auto-updates.
    186 $help_sidebar_autoupdates = '';
    187188if ( current_user_can( 'update_themes' ) && wp_is_auto_update_enabled_for_type( 'theme' ) ) {
    188189    $help_tab_autoupdates =
     
    204205    '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    205206    '<p>' . __( '<a href="https://wordpress.org/support/article/using-themes/">Documentation on Using Themes</a>' ) . '</p>' .
    206     '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' .
    207     $help_sidebar_autoupdates
     207    $help_sidebar_autoupdates .
     208    '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    208209);
    209210
  • trunk/src/wp-admin/update-core.php

    r48062 r48095  
    747747
    748748$help_sidebar_autoupdates = '';
     749
    749750if ( ( current_user_can( 'update_themes' ) && wp_is_auto_update_enabled_for_type( 'theme' ) ) || ( current_user_can( 'update_plugins' ) && wp_is_auto_update_enabled_for_type( 'plugin' ) ) ) {
    750751    $help_tab_autoupdates  = '<p>' . __( 'Auto-updates can be enabled or disabled for each individual theme or plugin. Themes or 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>';
     
    765766    '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    766767    '<p>' . __( '<a href="https://wordpress.org/support/article/dashboard-updates-screen/">Documentation on Updating WordPress</a>' ) . '</p>' .
    767     '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' .
    768     $help_sidebar_autoupdates
     768    $help_sidebar_autoupdates .
     769    '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    769770);
    770771
Note: See TracChangeset for help on using the changeset viewer.