WordPress.org

Plugin Directory

Changeset 570870


Ignore:
Timestamp:
07/11/12 20:47:36 (21 months ago)
Author:
bainternet
Message:

Fixed wp_debug errors

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

Legend:

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

    r566661 r570870  
    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.1 
     6Version: 2.1.2 
    77Author: BaInternet 
    88Author URI: http://en.bainternet.info 
     
    180180            $def = $this->get_defaults(); 
    181181            $options = array_merge($def,$options); 
    182             foreach ($options as $key => $value) { 
     182            foreach ((array)$options as $key => $value) { 
    183183                if (isset($_POST[$key]) && $_POST[$key] != "null"){ 
    184184                    if ($_POST[$key] == 'ckd') 
     
    287287                 
    288288                echo '<table border="1" width="95%"><tr><th>'.__('Date','ace').'</th><th>'.__('Message','ace').'</th><th>'.__('Actions','ace').'</th></tr>'; 
    289                 foreach ($versions as $i => $vs ) { 
     289                foreach ((array)$versions as $i => $vs ) { 
    290290                    if ($i == $_POST['filename']){ 
    291                         foreach ($vs as $v ) { 
     291                        foreach ((array)$vs as $v ) { 
    292292                            $meta_id = $this->get_file_meta_id($i,$v); 
    293293                            $v = maybe_unserialize($v); 
     
    480480            if (is_dir($source) === true){ 
    481481                $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($source), RecursiveIteratorIterator::SELF_FIRST); 
    482                 foreach ($files as $file){ 
     482                foreach ((array)$files as $file){ 
    483483                    $file = str_replace('\\', '/', realpath($file)); 
    484484                    if (is_dir($file) === true){ 
     
    710710            $def = $this->get_defaults(); 
    711711            $options = get_option('ace_options',array()); 
    712             $optinos =  array_merge($def,$options); 
     712            $options =  array_merge((array)$def,(array)$options); 
    713713            wp_localize_script('codemirror-complete', 'ace_user', $options); 
    714714            //@todo: add tabbed editor 
  • advanced-code-editor/trunk/readme.txt

    r566661 r570870  
    55Requires at least: 2.9.2 
    66Tested up to: 3.4.1 
    7 Stable tag: 2.1.1 
     7Stable tag: 2.1.2 
    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.2 Fixed WP_Debug issues 
     83 
    82842.1.1 quick bug fixes fatal error on activation. 
    8385 
Note: See TracChangeset for help on using the changeset viewer.