summaryrefslogtreecommitdiffstats
path: root/wp-admin/plugin-editor.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-11-24 16:16:44 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-11-24 16:16:44 +0000
commit600b71019494e1c29898a620e58c0d2602f37b74 (patch)
tree21181d77ad4ebbcd42cd883e509c08a568d29514 /wp-admin/plugin-editor.php
parent7935d0bd9ef23d32ae29a95bd6c3ea0b6eab2973 (diff)
downloadwordpress-mu-600b71019494e1c29898a620e58c0d2602f37b74.tar.gz
wordpress-mu-600b71019494e1c29898a620e58c0d2602f37b74.tar.xz
wordpress-mu-600b71019494e1c29898a620e58c0d2602f37b74.zip
WP Merge to 4524
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@810 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/plugin-editor.php')
-rw-r--r--wp-admin/plugin-editor.php46
1 files changed, 23 insertions, 23 deletions
diff --git a/wp-admin/plugin-editor.php b/wp-admin/plugin-editor.php
index 42fe9d4..3020b48 100644
--- a/wp-admin/plugin-editor.php
+++ b/wp-admin/plugin-editor.php
@@ -62,8 +62,8 @@ default:
<?php if (isset($_GET['a'])) : ?>
<div id="message" class="updated fade"><p><?php _e('File edited successfully.') ?></p></div>
<?php endif; ?>
- <div class="wrap">
- <?php
+ <div class="wrap">
+ <?php
if (is_writeable($real_file)) {
echo '<h2>' . sprintf(__('Editing <strong>%s</strong>'), $file) . '</h2>';
} else {
@@ -76,39 +76,39 @@ default:
<?php
if ($plugin_files) :
?>
- <ul>
-<?php foreach($plugin_files as $plugin_file) : ?>
+ <ul>
+ <?php foreach($plugin_files as $plugin_file) : ?>
<li><a href="plugin-editor.php?file=<?php echo "$plugin_file"; ?>"><?php echo $plugins[$plugin_file]['Name']; ?></a></li>
-<?php endforeach; ?>
- </ul>
+ <?php endforeach; ?>
+ </ul>
<?php endif; ?>
</div>
- <?php if (!$error) { ?>
- <form name="template" id="template" action="plugin-editor.php" method="post">
- <?php wp_nonce_field('edit-plugin_' . $file) ?>
- <div><textarea cols="70" rows="25" name="newcontent" id="newcontent" tabindex="1"><?php echo $content ?></textarea>
- <input type="hidden" name="action" value="update" />
- <input type="hidden" name="file" value="<?php echo $file ?>" />
+<?php if (!$error) { ?>
+ <form name="template" id="template" action="plugin-editor.php" method="post">
+ <?php wp_nonce_field('edit-plugin_' . $file) ?>
+ <div><textarea cols="70" rows="25" name="newcontent" id="newcontent" tabindex="1"><?php echo $content ?></textarea>
+ <input type="hidden" name="action" value="update" />
+ <input type="hidden" name="file" value="<?php echo $file ?>" />
</div>
<?php if ( is_writeable($real_file) ) : ?>
- <p class="submit">
-<?php
- echo "<input type='submit' name='submit' value=' " . __('Update File &raquo;') . "' tabindex='2' />";
-?>
-</p>
+ <p class="submit">
+ <?php
+ echo "<input type='submit' name='submit' value=' " . __('Update File &raquo;') . "' tabindex='2' />";
+ ?>
+ </p>
<?php else : ?>
-<p><em><?php _e('If this file were writable you could edit it.'); ?></em></p>
+ <p><em><?php _e('If this file were writable you could edit it.'); ?></em></p>
<?php endif; ?>
- </form>
- <?php
+ </form>
+<?php
} else {
echo '<div class="error"><p>' . __('Oops, no such file exists! Double check the name and try again, merci.') . '</p></div>';
}
- ?>
+?>
<div class="clear"> &nbsp; </div>
-</div>
+</div>
<?php
break;
}
-include("admin-footer.php") ?>
+include("admin-footer.php") ?>