Help for plugin-editor.php. see #13467

git-svn-id: https://develop.svn.wordpress.org/trunk@14959 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-05-26 20:40:57 +00:00
parent d3196fcab6
commit c6f462c0f6
1 changed files with 9 additions and 0 deletions

View File

@ -107,6 +107,15 @@ default:
}
}
add_contextual_help($current_screen, '<p>' . __('You can use the editor to make changes to any of your plugins&#8217; individual PHP files. Be aware that if you make changes, plugins updates will overwrite your customizations. ') . '</p>' .
'<p>' . __('Choose a plugin to edit from the menu in the upper right and click the Select button. Click once any file name to load it in the editor, and make your changes. Don&#8217;t forget to save your changes (Update File) when you&#8217;re finished.') . '</p>' .
'<p>' . __('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. ') . '</p>' .
'<p>' . __('If you want to make changes but don&#8217;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 a plugin or start from scratch, check out the links below.') . '</p>' .
'<p>' . __('<strong>For more information:</strong>') . '</p>' .
'<p>' . sprintf(__('<a href="%s">Documentation on Editing Plugins</a>'), 'http://codex.wordpress.org/Plugins_Editor_SubPanel') . '</p>' .
'<p>' . sprintf(__('<a href="%s">Support Forums</a>'), 'http://wordpress.org/support/') . '</p>'
);
require_once('./admin-header.php');
update_recently_edited(WP_PLUGIN_DIR . '/' . $file);