Changeset 19445 for trunk/wp-admin/theme-editor.php
- Timestamp:
- 11/24/2011 12:21:39 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/theme-editor.php
r19122 r19445 21 21 $parent_file = 'themes.php'; 22 22 23 $help = '<p>' . __('You can use the Theme Editor to edit the individual CSS and PHP files which make up your theme.') . '</p>'; 24 $help .= '<p>' . __('Begin by choosing a theme to edit from the dropdown menu and clicking Select. A list then appears of all the template files. Clicking once on any file name causes the file to appear in the large Editor box.') . '</p>'; 25 $help .= '<p>' . __('For PHP files, you can use the Documentation dropdown to select from functions recognized in that file. Lookup takes you to a web page with reference material about that particular function.') . '</p>'; 26 $help .= '<p>' . __('After typing in your edits, click Update File.') . '</p>'; 27 $help .= '<p>' . __('<strong>Advice:</strong> think very carefully about your site crashing if you are live-editing the theme currently in use.') . '</p>'; 28 $help .= '<p>' . __('Upgrading to a newer version of the same theme will override changes made here. To avoid this, consider creating a <a href="http://codex.wordpress.org/Child_Themes" target="_blank">child theme</a> instead.') . '</p>'; 29 if ( is_network_admin() ) 30 $help .= '<p>' . __('Any edits to files from this screen will be reflected on all sites in the network.') . '</p>'; 31 32 add_contextual_help($current_screen, $help); 23 get_current_screen()->add_help_tab( array( 24 'id' => 'overview', 25 'title' => __('Overview'), 26 'content' => 27 '<p>' . __('You can use the Theme Editor to edit the individual CSS and PHP files which make up your theme.') . '</p> 28 <p>' . __('Begin by choosing a theme to edit from the dropdown menu and clicking Select. A list then appears of all the template files. Clicking once on any file name causes the file to appear in the large Editor box.') . '</p> 29 <p>' . __('For PHP files, you can use the Documentation dropdown to select from functions recognized in that file. Lookup takes you to a web page with reference material about that particular function.') . '</p> 30 <p>' . __('After typing in your edits, click Update File.') . '</p> 31 <p>' . __('<strong>Advice:</strong> think very carefully about your site crashing if you are live-editing the theme currently in use.') . '</p> 32 <p>' . __('Upgrading to a newer version of the same theme will override changes made here. To avoid this, consider creating a <a href="http://codex.wordpress.org/Child_Themes" target="_blank">child theme</a> instead.') . '</p>' . 33 ( is_network_admin() ? '<p>' . __('Any edits to files from this screen will be reflected on all sites in the network.') . '</p>' : '' ) 34 ) ); 33 35 34 36 get_current_screen()->set_help_sidebar(
Note: See TracChangeset
for help on using the changeset viewer.