WordPress.org

Plugin Directory

Changeset 572153


Ignore:
Timestamp:
07/14/12 10:03:45 (22 months ago)
Author:
bainternet
Message:

Fixed bug from short php tag.
added version to javascript enqueue

Location:
advanced-code-editor
Files:
73 added
2 edited

Legend:

Unmodified
Added
Removed
  • advanced-code-editor/trunk/advanced-code-editor.php

    r570870 r572153  
    44Plugin URI: http://en.bainternet.info 
    55Description: Enables syntax highlighting in the integrated themes and plugins source code editors with line numbers, AutoComplete and much more. Supports PHP, HTML, CSS and JS. 
    6 Version: 2.1.2 
     6Version: 2.1.3 
    77Author: BaInternet 
    88Author URI: http://en.bainternet.info 
     
    5454 
    5555        /** 
     56         * plugin version  
     57         * @var string 
     58         */ 
     59        static $version = '2.1.3'; 
     60 
     61        /** 
    5662         * Class constarctor 
    5763         */ 
     
    5965            if( is_admin()){ 
    6066                $this->tablename = 'filemeta'; 
     67                $this->version = '2.1.3'; 
    6168                //create new file admin ajax 
    6269                add_action('wp_ajax_create_file', array($this,'ajax_create_file')); 
     
    165172                </div> 
    166173            </div> 
    167             <? 
     174            <?php 
    168175            die(); 
    169176        } 
     
    698705            wp_enqueue_script( 'jquery' ); 
    699706            wp_enqueue_script( 'jquery-form' ); 
    700             wp_enqueue_script('codemirror',$url.'js/codemirror.js',array(),false,true); 
    701             wp_enqueue_script('codemirror-fold',$url.'js/foldcode.js',array(),false,true); 
    702             wp_enqueue_script('codemirror-format',$url.'js/formatting.js',array(),false,true); 
    703             wp_enqueue_script('codemirror-xml',$url.'js/xml.js',array(),false,true); 
    704             wp_enqueue_script('codemirror-js',$url.'js/javascript.js',array(),false,true); 
    705             wp_enqueue_script('codemirror-css',$url.'js/css.js',array(),false,true); 
    706             wp_enqueue_script('codemirror-clike',$url.'js/clike.js',array(),false,true); 
    707             wp_enqueue_script('codemirror-php',$url.'js/php.js',array(),false,true); 
    708             wp_enqueue_script('codemirror-search',$url.'js/searchcursor.js',array(),false,true); 
    709             wp_enqueue_script('codemirror-complete',$url.'js/complete.js',array(),false,true); 
     707            wp_enqueue_script('codemirror',$url.'js/codemirror.js',array(),$this->version,true); 
     708            wp_enqueue_script('codemirror-fold',$url.'js/foldcode.js',array(),$this->version,true); 
     709            wp_enqueue_script('codemirror-format',$url.'js/formatting.js',array(),$this->version,true); 
     710            wp_enqueue_script('codemirror-xml',$url.'js/xml.js',array(),$this->version,true); 
     711            wp_enqueue_script('codemirror-js',$url.'js/javascript.js',array(),$this->version,true); 
     712            wp_enqueue_script('codemirror-css',$url.'js/css.js',array(),$this->version,true); 
     713            wp_enqueue_script('codemirror-clike',$url.'js/clike.js',array(),$this->version,true); 
     714            wp_enqueue_script('codemirror-php',$url.'js/php.js',array(),$this->version,true); 
     715            wp_enqueue_script('codemirror-search',$url.'js/searchcursor.js',array(),$this->version,true); 
     716            wp_enqueue_script('codemirror-complete',$url.'js/complete.js',array(),$this->version,true); 
    710717            $def = $this->get_defaults(); 
    711718            $options = get_option('ace_options',array()); 
    712719            $options =  array_merge((array)$def,(array)$options); 
    713720            wp_localize_script('codemirror-complete', 'ace_user', $options); 
     721             
    714722            //@todo: add tabbed editor 
    715723            //wp_enqueue_script('jquery-ui-tabs'); 
     724             
     725             
    716726            //stylesheets 
    717727            wp_enqueue_style('codemirror', $url.'css/codemirror.css', false, false); 
  • advanced-code-editor/trunk/readme.txt

    r570870 r572153  
    33Donate link:http://en.bainternet.info/donations 
    44Tags: code, theme editor, plugin editor, code editor, WordPress IDE 
    5 Requires at least: 2.9.2 
     5Requires at least: 3.0 
    66Tested up to: 3.4.1 
    7 Stable tag: 2.1.2 
     7Stable tag: 2.1.3 
    88 
    99Enables syntax highlighting in the integrated themes and plugins source code editors with line numbers, AutoComplete and much more. Supports PHP, HTML, CSS and JS. 
     
    8080 
    8181== Changelog == 
     822.1.3 Fixed bugs caused by short php tag. 
     83added plugin version to js files to avoid clearing cache. 
     84 
    82852.1.2 Fixed WP_Debug issues 
    8386 
Note: See TracChangeset for help on using the changeset viewer.