X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/d3b1ea255664edd2deef17f900a655613d20820d..refs/tags/wordpress-2.8.2:/wp-admin/plugin-editor.php?ds=sidebyside diff --git a/wp-admin/plugin-editor.php b/wp-admin/plugin-editor.php index e297ef4c..8b1602c3 100644 --- a/wp-admin/plugin-editor.php +++ b/wp-admin/plugin-editor.php @@ -83,9 +83,6 @@ default: exit; } - if ( use_codepress() ) - wp_enqueue_script( 'codepress' ); - // List of allowable extensions $editable_extensions = array('php', 'txt', 'text', 'js', 'css', 'html', 'htm', 'xml', 'inc', 'include'); $editable_extensions = (array) apply_filters('editable_extensions', $editable_extensions); @@ -111,12 +108,14 @@ default: if ( '.php' == substr( $real_file, strrpos( $real_file, '.' ) ) ) { $functions = wp_doc_link_parse( $content ); - $docs_select = ''; + $docs_select .= ''; + foreach ( $functions as $function) { + $docs_select .= ''; + } + $docs_select .= ''; } - $docs_select .= ''; } $content = htmlspecialchars( $content ); @@ -136,8 +135,25 @@ default:

-
-
+ +
+
+%s (active)'), $file); + else + echo sprintf(__('Browsing %s (active)'), $file); + } else { + if ( is_writeable($real_file) ) + echo sprintf(__('Editing %s (inactive)'), $file); + else + echo sprintf(__('Browsing %s (inactive)'), $file); + } + ?> +
+
+
- +
@@ -221,10 +221,10 @@ foreach ( $plugin_files as $plugin_file ) :

the Codex for more information.'); ?>

- -
 
+ +
+include("admin-footer.php");