From 27be9140d8ba2196ca4ced2a5ceb2354a6ff0afa Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sat, 18 Dec 2010 18:33:21 +0000 Subject: [PATCH] Network-specific language on the plugin and theme editor help tabs. props andrea_r, see #15314. git-svn-id: https://develop.svn.wordpress.org/trunk@17046 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/plugin-editor.php | 1 + wp-admin/theme-editor.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/wp-admin/plugin-editor.php b/wp-admin/plugin-editor.php index 31e1fdb41c..97cb6bdca0 100644 --- a/wp-admin/plugin-editor.php +++ b/wp-admin/plugin-editor.php @@ -116,6 +116,7 @@ default: '

' . __('Choose a plugin to edit from the menu in the upper right and click the Select button. Click once on any file name to load it in the editor, and make your changes. Don’t forget to save your changes (Update File) when you’re finished.') . '

' . '

' . __('The Documentation menu below the editor lists the PHP functions recognized in the plugin file. Clicking Lookup takes you to a web page about that particular function.') . '

' . '

' . __('If you want to make changes but don’t want them to be overwritten when the plugin is updated, you may be ready to think about writing your own plugin. For information on how to edit plugins, write your own from scratch, or just better understand their anatomy, check out the links below.') . '

' . + ( is_network_admin() ? '

' . __('Any edits to files from this screen will be available to all sites in the network.') . '

' : '' ) . '

' . __('For more information:') . '

' . '

' . __('Documentation on Editing Plugins') . '

' . '

' . __('Documentation on Writing Plugins') . '

' . diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index 27aee57534..e6cc521652 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -26,6 +26,8 @@ $help .= '

' . __('For PHP files, you can use the Documentation dropdown to se $help .= '

' . __('After typing in your edits, click Update File.') . '

'; $help .= '

' . __('Advice: think very carefully about your site crashing if you are live-editing the theme currently in use.') . '

'; $help .= '

' . __('Upgrading to a newer version of the same theme will override changes made here. To avoid this, consider creating a child theme instead.') . '

'; +if ( is_network_admin() ) + $help .= '

' . __('Any edits to files from this screen will be available to all sites in the network.') . '

'; $help .= '

' . __('For more information:') . '

'; $help .= '

' . __('Documentation on Theme Development') . '

'; $help .= '

' . __('Documentation on Using Themes') . '

';