Version Description
- Fixed "Folder name case" issue.
Download this release
Release Info
Developer | WPsites |
Plugin | WPide |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0 to 1.0.1
- WPide.php +7 -151
- readme.txt +61 -58
WPide.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: WPide
|
5 |
Plugin URI: https://github.com/WPsites/WPide
|
6 |
Description: Replace the default WordPress code editor for plugins and themes. Adding syntax highlighting, autocomplete of WordPress functions + PHP, line numbers, auto backup of files before editing.
|
7 |
-
Version: 1.0
|
8 |
Author: Simon Dunton
|
9 |
Author URI: http://www.wpsites.co.uk
|
10 |
|
@@ -2526,83 +2526,27 @@ var html_tags = ("_() __() __checked_selected_helper() __construct() __destruct(
|
|
2526 |
}
|
2527 |
|
2528 |
|
2529 |
-
|
2530 |
-
|
2531 |
-
|
2532 |
-
|
2533 |
-
|
2534 |
});
|
2535 |
|
2536 |
|
2537 |
-
|
2538 |
-
|
2539 |
-
|
2540 |
-
|
2541 |
-
|
2542 |
});
|
2543 |
|
2544 |
|
2545 |
|
2546 |
-
|
2547 |
-
|
2548 |
-
|
2549 |
-
|
2550 |
-
|
2551 |
-
|
2552 |
-
|
2553 |
-
|
2554 |
-
|
2555 |
-
|
2556 |
-
|
2557 |
-
|
2558 |
</script>
|
2559 |
|
2560 |
|
2561 |
|
2562 |
|
2563 |
|
2564 |
-
|
2565 |
-
|
2566 |
-
|
2567 |
-
|
2568 |
-
|
2569 |
-
|
2570 |
-
|
2571 |
-
|
2572 |
-
|
2573 |
-
|
2574 |
<?php
|
2575 |
-
|
2576 |
-
|
2577 |
-
|
2578 |
-
|
2579 |
-
|
2580 |
-
|
2581 |
-
|
2582 |
}
|
2583 |
|
2584 |
|
2585 |
|
2586 |
|
2587 |
-
|
2588 |
-
|
2589 |
-
|
2590 |
-
|
2591 |
-
|
2592 |
-
|
2593 |
-
|
2594 |
-
|
2595 |
-
|
2596 |
-
|
2597 |
-
|
2598 |
public static function add_admin_js()
|
2599 |
-
|
2600 |
-
|
2601 |
-
|
2602 |
-
|
2603 |
-
|
2604 |
-
|
2605 |
-
|
2606 |
{
|
2607 |
|
2608 |
|
@@ -2638,19 +2582,6 @@ var html_tags = ("_() __() __checked_selected_helper() __construct() __destruct(
|
|
2638 |
wp_enqueue_script('ace-theme', $plugin_path . 'ace-0.2.0/src/theme-dawn.js');//monokai is nice
|
2639 |
|
2640 |
|
2641 |
-
|
2642 |
-
|
2643 |
-
|
2644 |
-
|
2645 |
-
|
2646 |
-
|
2647 |
-
|
2648 |
-
|
2649 |
-
|
2650 |
-
|
2651 |
-
|
2652 |
-
|
2653 |
-
|
2654 |
}
|
2655 |
|
2656 |
|
@@ -2661,28 +2592,6 @@ var html_tags = ("_() __() __checked_selected_helper() __construct() __destruct(
|
|
2661 |
|
2662 |
|
2663 |
|
2664 |
-
|
2665 |
-
|
2666 |
-
|
2667 |
-
|
2668 |
-
|
2669 |
-
|
2670 |
-
|
2671 |
-
|
2672 |
-
|
2673 |
-
|
2674 |
-
|
2675 |
-
|
2676 |
-
|
2677 |
-
|
2678 |
-
|
2679 |
-
|
2680 |
-
|
2681 |
-
|
2682 |
-
|
2683 |
-
|
2684 |
-
|
2685 |
-
|
2686 |
public static function ace_backup_call() {
|
2687 |
|
2688 |
|
@@ -2699,31 +2608,21 @@ var html_tags = ("_() __() __checked_selected_helper() __construct() __destruct(
|
|
2699 |
|
2700 |
|
2701 |
|
2702 |
-
|
2703 |
-
|
2704 |
-
|
2705 |
-
|
2706 |
if ($edit_type==='theme'){
|
2707 |
|
2708 |
|
2709 |
-
|
2710 |
$theme_root = get_theme_root();
|
2711 |
|
2712 |
|
2713 |
-
|
2714 |
-
|
2715 |
-
|
2716 |
-
|
2717 |
-
|
2718 |
$short_path = str_replace($theme_root, '', $file_name);
|
2719 |
|
2720 |
|
2721 |
|
2722 |
-
$new_file_path_daily = WP_PLUGIN_DIR.'/
|
2723 |
|
2724 |
|
2725 |
|
2726 |
-
$new_file_path_hourly = WP_PLUGIN_DIR.'/
|
2727 |
|
2728 |
|
2729 |
|
@@ -2791,11 +2690,11 @@ var html_tags = ("_() __() __checked_selected_helper() __construct() __destruct(
|
|
2791 |
|
2792 |
|
2793 |
|
2794 |
-
$new_file_path_daily = WP_PLUGIN_DIR.'/
|
2795 |
|
2796 |
|
2797 |
|
2798 |
-
$new_file_path_hourly = WP_PLUGIN_DIR.'/
|
2799 |
|
2800 |
|
2801 |
|
@@ -2855,26 +2754,14 @@ var html_tags = ("_() __() __checked_selected_helper() __construct() __destruct(
|
|
2855 |
|
2856 |
|
2857 |
|
2858 |
-
//echo "final debug info : " . WP_PLUGIN_DIR.'/
|
2859 |
|
2860 |
|
2861 |
|
2862 |
die(); // this is required to return a proper result
|
2863 |
|
2864 |
-
|
2865 |
-
|
2866 |
-
|
2867 |
-
|
2868 |
-
|
2869 |
-
|
2870 |
}
|
2871 |
|
2872 |
-
|
2873 |
-
|
2874 |
-
|
2875 |
-
|
2876 |
-
|
2877 |
-
|
2878 |
}
|
2879 |
|
2880 |
|
@@ -2883,46 +2770,15 @@ var html_tags = ("_() __() __checked_selected_helper() __construct() __destruct(
|
|
2883 |
|
2884 |
|
2885 |
|
2886 |
-
|
2887 |
-
|
2888 |
-
|
2889 |
-
|
2890 |
-
|
2891 |
-
|
2892 |
-
|
2893 |
-
|
2894 |
//only include this plugin if on theme editor or plugin editor
|
2895 |
|
2896 |
-
|
2897 |
-
|
2898 |
-
|
2899 |
-
|
2900 |
-
|
2901 |
-
|
2902 |
if ( $_SERVER['PHP_SELF'] === '/wp-admin/plugin-editor.php' ||
|
2903 |
-
|
2904 |
-
|
2905 |
-
|
2906 |
$_SERVER['PHP_SELF'] === '/wp-admin/theme-editor.php' ||
|
2907 |
-
|
2908 |
-
|
2909 |
-
|
2910 |
$_SERVER['PHP_SELF'] === '/wp-admin/admin-ajax.php' ){
|
2911 |
|
2912 |
|
2913 |
-
|
2914 |
-
|
2915 |
-
|
2916 |
-
|
2917 |
-
|
2918 |
add_action("init", create_function('', 'new WPide();'));
|
2919 |
|
2920 |
-
|
2921 |
-
|
2922 |
-
|
2923 |
-
|
2924 |
-
|
2925 |
-
|
2926 |
}
|
2927 |
|
2928 |
|
4 |
Plugin Name: WPide
|
5 |
Plugin URI: https://github.com/WPsites/WPide
|
6 |
Description: Replace the default WordPress code editor for plugins and themes. Adding syntax highlighting, autocomplete of WordPress functions + PHP, line numbers, auto backup of files before editing.
|
7 |
+
Version: 1.0.1
|
8 |
Author: Simon Dunton
|
9 |
Author URI: http://www.wpsites.co.uk
|
10 |
|
2526 |
}
|
2527 |
|
2528 |
|
|
|
|
|
|
|
|
|
|
|
2529 |
});
|
2530 |
|
2531 |
|
|
|
|
|
|
|
|
|
|
|
2532 |
});
|
2533 |
|
2534 |
|
2535 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2536 |
</script>
|
2537 |
|
2538 |
|
2539 |
|
2540 |
|
2541 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2542 |
<?php
|
2543 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
2544 |
}
|
2545 |
|
2546 |
|
2547 |
|
2548 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2549 |
public static function add_admin_js()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2550 |
{
|
2551 |
|
2552 |
|
2582 |
wp_enqueue_script('ace-theme', $plugin_path . 'ace-0.2.0/src/theme-dawn.js');//monokai is nice
|
2583 |
|
2584 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2585 |
}
|
2586 |
|
2587 |
|
2592 |
|
2593 |
|
2594 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2595 |
public static function ace_backup_call() {
|
2596 |
|
2597 |
|
2608 |
|
2609 |
|
2610 |
|
|
|
|
|
|
|
|
|
2611 |
if ($edit_type==='theme'){
|
2612 |
|
2613 |
|
|
|
2614 |
$theme_root = get_theme_root();
|
2615 |
|
2616 |
|
|
|
|
|
|
|
|
|
|
|
2617 |
$short_path = str_replace($theme_root, '', $file_name);
|
2618 |
|
2619 |
|
2620 |
|
2621 |
+
$new_file_path_daily = WP_PLUGIN_DIR.'/wpide/backups/themes'.$short_path.'.'.date("Ymd");
|
2622 |
|
2623 |
|
2624 |
|
2625 |
+
$new_file_path_hourly = WP_PLUGIN_DIR.'/wpide/backups/themes'.$short_path.'.'.date("YmdH");
|
2626 |
|
2627 |
|
2628 |
|
2690 |
|
2691 |
|
2692 |
|
2693 |
+
$new_file_path_daily = WP_PLUGIN_DIR.'/wpide/backups/plugins/'.$short_path.'.'.date("Ymd");
|
2694 |
|
2695 |
|
2696 |
|
2697 |
+
$new_file_path_hourly = WP_PLUGIN_DIR.'/wpide/backups/plugins/'.$short_path.'.'.date("YmdH");
|
2698 |
|
2699 |
|
2700 |
|
2754 |
|
2755 |
|
2756 |
|
2757 |
+
//echo "final debug info : " . WP_PLUGIN_DIR.'/wpide/backups/'.$short_path.'.backup';
|
2758 |
|
2759 |
|
2760 |
|
2761 |
die(); // this is required to return a proper result
|
2762 |
|
|
|
|
|
|
|
|
|
|
|
|
|
2763 |
}
|
2764 |
|
|
|
|
|
|
|
|
|
|
|
|
|
2765 |
}
|
2766 |
|
2767 |
|
2770 |
|
2771 |
|
2772 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2773 |
//only include this plugin if on theme editor or plugin editor
|
2774 |
|
|
|
|
|
|
|
|
|
|
|
|
|
2775 |
if ( $_SERVER['PHP_SELF'] === '/wp-admin/plugin-editor.php' ||
|
|
|
|
|
|
|
2776 |
$_SERVER['PHP_SELF'] === '/wp-admin/theme-editor.php' ||
|
|
|
|
|
|
|
2777 |
$_SERVER['PHP_SELF'] === '/wp-admin/admin-ajax.php' ){
|
2778 |
|
2779 |
|
|
|
|
|
|
|
|
|
|
|
2780 |
add_action("init", create_function('', 'new WPide();'));
|
2781 |
|
|
|
|
|
|
|
|
|
|
|
|
|
2782 |
}
|
2783 |
|
2784 |
|
readme.txt
CHANGED
@@ -1,59 +1,62 @@
|
|
1 |
-
=== WPide ===
|
2 |
-
Contributors: WPsites
|
3 |
-
Tags: code, theme editor, plugin editor, code editor
|
4 |
-
Requires at least: 3.0
|
5 |
-
Tested up to: 3.3
|
6 |
-
Stable tag: 1.0
|
7 |
-
|
8 |
-
Replace the default WordPress code editor for plugins and themes. Adding syntax highlighting, autocomplete of WordPress functions + PHP, line numbers, auto backup of files before editing.
|
9 |
-
|
10 |
-
== Description ==
|
11 |
-
|
12 |
-
Out of frustration of unsatisfactory experiences with desktop based IDE's and code editors we (WPsites) decided to make use of the Ajax.org Cloud9 Editor (http://ace.ajax.org/) and embed it in place of the default WordPress file editor.
|
13 |
-
|
14 |
-
= This plugin does not currently work on Internet Explorer! =
|
15 |
-
|
16 |
-
= Current Features: =
|
17 |
-
|
18 |
-
* Syntax highlighting
|
19 |
-
* Line numbers
|
20 |
-
* Autocomplete of WordPress functions and PHP
|
21 |
-
* Automatic backup of every file you edit. (one daily backup and one hourly backup of each file stored in plugins/WPide/backups)
|
22 |
-
* Highlight matching parentheses
|
23 |
-
* Auto indentation
|
24 |
-
|
25 |
-
= Planned Features: =
|
26 |
-
|
27 |
-
* Tabbed document interface for editing multiple files
|
28 |
-
* Ajax Save
|
29 |
-
* Create and edit directories and files
|
30 |
-
* ctrl + s saving
|
31 |
-
* Improve the code auto complete so that it shows command arguments rather than just commands, possibly with links through to the WordPress codex for further info
|
32 |
-
* Create an admin panel to choose between syntax highlighting themes and turn on/off other Ajax.org Cloud9 functionality
|
33 |
-
* Better automated file backup process
|
34 |
-
* Integration with git for version control
|
35 |
-
|
36 |
-
|
37 |
-
As with most plugins this one is open source. For issue tracking, further information and anyone wishing to get involved and help contribute to this project can do so over on github https://github.com/WPsites/WPide
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
== Installation ==
|
42 |
-
|
43 |
-
1. Upload the WPide folder to the `/wp-content/plugins/` directory
|
44 |
-
1. Activate the plugin through the 'Plugins' menu in WordPress
|
45 |
-
|
46 |
-
== Frequently Asked Questions ==
|
47 |
-
|
48 |
-
= Does this plugin work on Internet Explorer =
|
49 |
-
|
50 |
-
No support for Internet Explorer right now
|
51 |
-
|
52 |
-
== Screenshots ==
|
53 |
-
|
54 |
-
1. Editor view, showing line numbers and syntax highlighting.
|
55 |
-
|
56 |
-
== Changelog ==
|
57 |
-
|
58 |
-
= 1.0 =
|
|
|
|
|
|
|
59 |
* Initial release.
|
1 |
+
=== WPide ===
|
2 |
+
Contributors: WPsites
|
3 |
+
Tags: code, theme editor, plugin editor, code editor
|
4 |
+
Requires at least: 3.0
|
5 |
+
Tested up to: 3.3
|
6 |
+
Stable tag: 1.0.1
|
7 |
+
|
8 |
+
Replace the default WordPress code editor for plugins and themes. Adding syntax highlighting, autocomplete of WordPress functions + PHP, line numbers, auto backup of files before editing.
|
9 |
+
|
10 |
+
== Description ==
|
11 |
+
|
12 |
+
Out of frustration of unsatisfactory experiences with desktop based IDE's and code editors we (WPsites) decided to make use of the Ajax.org Cloud9 Editor (http://ace.ajax.org/) and embed it in place of the default WordPress file editor.
|
13 |
+
|
14 |
+
= This plugin does not currently work on Internet Explorer! =
|
15 |
+
|
16 |
+
= Current Features: =
|
17 |
+
|
18 |
+
* Syntax highlighting
|
19 |
+
* Line numbers
|
20 |
+
* Autocomplete of WordPress functions and PHP
|
21 |
+
* Automatic backup of every file you edit. (one daily backup and one hourly backup of each file stored in plugins/WPide/backups)
|
22 |
+
* Highlight matching parentheses
|
23 |
+
* Auto indentation
|
24 |
+
|
25 |
+
= Planned Features: =
|
26 |
+
|
27 |
+
* Tabbed document interface for editing multiple files
|
28 |
+
* Ajax Save
|
29 |
+
* Create and edit directories and files
|
30 |
+
* ctrl + s saving
|
31 |
+
* Improve the code auto complete so that it shows command arguments rather than just commands, possibly with links through to the WordPress codex for further info
|
32 |
+
* Create an admin panel to choose between syntax highlighting themes and turn on/off other Ajax.org Cloud9 functionality
|
33 |
+
* Better automated file backup process
|
34 |
+
* Integration with git for version control
|
35 |
+
|
36 |
+
|
37 |
+
As with most plugins this one is open source. For issue tracking, further information and anyone wishing to get involved and help contribute to this project can do so over on github https://github.com/WPsites/WPide
|
38 |
+
|
39 |
+
|
40 |
+
|
41 |
+
== Installation ==
|
42 |
+
|
43 |
+
1. Upload the WPide folder to the `/wp-content/plugins/` directory
|
44 |
+
1. Activate the plugin through the 'Plugins' menu in WordPress
|
45 |
+
|
46 |
+
== Frequently Asked Questions ==
|
47 |
+
|
48 |
+
= Does this plugin work on Internet Explorer =
|
49 |
+
|
50 |
+
No support for Internet Explorer right now
|
51 |
+
|
52 |
+
== Screenshots ==
|
53 |
+
|
54 |
+
1. Editor view, showing line numbers and syntax highlighting.
|
55 |
+
|
56 |
+
== Changelog ==
|
57 |
+
|
58 |
+
= 1.0.1 =
|
59 |
+
* Fixed "Folder name case" issue.
|
60 |
+
|
61 |
+
= 1.0 =
|
62 |
* Initial release.
|