Changeset 10614 for trunk/wp-admin/theme-editor.php
- Timestamp:
- 02/21/2009 02:12:00 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/theme-editor.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/theme-editor.php
r10607 r10614 78 78 wp_die('<p>'.__('You do not have sufficient permissions to edit themes for this blog.').'</p>'); 79 79 80 wp_enqueue_script( 'codepress' ); 81 add_action( 'admin_print_footer_scripts', 'codepress_footer_js' ); 80 82 require_once('admin-header.php'); 81 83 … … 101 103 102 104 $content = htmlspecialchars( $content ); 105 $codepress_lang = codepress_get_lang($real_file); 103 106 } 104 107 … … 195 198 <form name="template" id="template" action="theme-editor.php" method="post"> 196 199 <?php wp_nonce_field('edit-theme_' . $file . $theme) ?> 197 <div><textarea cols="70" rows="25" name="newcontent" id="newcontent" tabindex="1" ><?php echo $content ?></textarea>200 <div><textarea cols="70" rows="25" name="newcontent" id="newcontent" tabindex="1" class="codepress <?php echo $codepress_lang ?>"><?php echo $content ?></textarea> 198 201 <input type="hidden" name="action" value="update" /> 199 202 <input type="hidden" name="file" value="<?php echo $file ?>" />
Note: See TracChangeset
for help on using the changeset viewer.