Changeset 48062
- Timestamp:
- 06/16/2020 05:27:05 PM (4 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/network/themes.php
r47835 r48062 303 303 ); 304 304 305 $help_sidebar_autoupdates = ''; 306 if ( current_user_can( 'update_themes' ) && wp_is_auto_update_enabled_for_type( 'theme' ) ) { 307 get_current_screen()->add_help_tab( 308 array( 309 'id' => 'plugins-themes-auto-updates', 310 'title' => __( 'Auto-updates' ), 311 'content' => 312 '<p>' . __( 'Auto-updates can be enabled or disabled for each individual theme. Themes 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>' . 313 '<p>' . __( 'Please note: Third-party themes and plugins, or custom code, may override WordPress scheduling.' ) . '</p>', 314 ) 315 ); 316 317 $help_sidebar_autoupdates = '<p>' . __( '<a href="https://wordpress.org/support/article/plugins-themes-auto-updates/">Learn more: Auto-updates documentation</a>' ) . '</p>'; 318 } 319 305 320 get_current_screen()->set_help_sidebar( 306 321 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . 307 322 '<p>' . __( '<a href="https://codex.wordpress.org/Network_Admin_Themes_Screen">Documentation on Network Themes</a>' ) . '</p>' . 308 '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' 323 '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' . 324 $help_sidebar_autoupdates 309 325 ); 310 326 -
trunk/src/wp-admin/plugins.php
r47835 r48062 566 566 ); 567 567 568 $help_sidebar_autoupdates = ''; 569 if ( 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 568 583 get_current_screen()->set_help_sidebar( 569 584 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . 570 585 '<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 572 588 ); 573 589 -
trunk/src/wp-admin/themes.php
r48059 r48062 183 183 } // End if 'edit_theme_options' && 'customize'. 184 184 185 // Help tab: Auto-updates. 186 $help_sidebar_autoupdates = ''; 187 if ( current_user_can( 'update_themes' ) && wp_is_auto_update_enabled_for_type( 'theme' ) ) { 188 $help_tab_autoupdates = 189 '<p>' . __( 'Auto-updates can be enabled or disabled for each individual theme. Themes 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>' . 190 '<p>' . __( 'Please note: Third-party themes and plugins, or custom code, may override WordPress scheduling.' ) . '</p>'; 191 192 get_current_screen()->add_help_tab( 193 array( 194 'id' => 'plugins-themes-auto-updates', 195 'title' => __( 'Auto-updates' ), 196 'content' => $help_tab_autoupdates, 197 ) 198 ); 199 200 $help_sidebar_autoupdates = '<p>' . __( '<a href="https://wordpress.org/support/article/plugins-themes-auto-updates/">Learn more: Auto-updates documentation</a>' ) . '</p>'; 201 } // End if 'update_themes' && 'wp_is_auto_update_enabled_for_type'. 202 185 203 get_current_screen()->set_help_sidebar( 186 204 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . 187 205 '<p>' . __( '<a href="https://wordpress.org/support/article/using-themes/">Documentation on Using Themes</a>' ) . '</p>' . 188 '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' 206 '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' . 207 $help_sidebar_autoupdates 189 208 ); 190 209 -
trunk/src/wp-admin/update-core.php
r47855 r48062 746 746 ); 747 747 748 $help_sidebar_autoupdates = ''; 749 if ( ( 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' ) ) ) { 750 $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>'; 751 $help_tab_autoupdates .= '<p>' . __( 'Please note: Third-party themes and plugins, or custom code, may override WordPress scheduling.' ) . '</p>'; 752 753 get_current_screen()->add_help_tab( 754 array( 755 'id' => 'plugins-themes-auto-updates', 756 'title' => __( 'Auto-updates' ), 757 'content' => $help_tab_autoupdates, 758 ) 759 ); 760 761 $help_sidebar_autoupdates = '<p>' . __( '<a href="https://wordpress.org/support/article/plugins-themes-auto-updates/">Learn more: Auto-updates documentation</a>' ) . '</p>'; 762 } 763 748 764 get_current_screen()->set_help_sidebar( 749 765 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . 750 766 '<p>' . __( '<a href="https://wordpress.org/support/article/dashboard-updates-screen/">Documentation on Updating WordPress</a>' ) . '</p>' . 751 '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' 767 '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' . 768 $help_sidebar_autoupdates 752 769 ); 753 770
Note: See TracChangeset
for help on using the changeset viewer.