Plugin Directory

Changeset 885480


Ignore:
Timestamp:
04/01/2014 05:43:12 AM (12 years ago)
Author:
sauhi
Message:

Upgrade to version 1.3

Location:
sau-syntax/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sau-syntax/trunk/readme.txt

    r839438 r885480  
    44Tags: syntax, syntax highlighter, sau syntax, highlighter, highlighting
    55Requires at least: 3.6
    6 Tested up to: 3.8
    7 Stable tag: 1.2
     6Tested up to: 3.8.1
     7Stable tag: 1.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3737== Changelog ==
    3838
     39= 1.3 =
     40* Fixed to show HTML code and PHP code which defined in shortcodes
     41
    3942= 1.2 =
    4043* Fixed auto paragraph in source code.
  • sau-syntax/trunk/syntax.php

    r839438 r885480  
    44 * Plugin URI: http://hocwp.net/blog/sau-syntax-plugin/
    55 * Description: Sau Syntax is the easiest way to post source code on your blog posts.
    6  * Version: 1.2
     6 * Version: 1.3
    77 * Author: Sau Hi
    88 * Author URI: http://hocwp.net
     
    4848        }
    4949        $lang = trim(strtolower($lang));
    50         return '<pre class="saupre"><code class="saucode '.$lang.'">'.do_shortcode($content).'</code></pre>';
     50        $tmp = htmlentities($content);
     51        return '<pre class="saupre"><code class="saucode '.$lang.'">'.do_shortcode($tmp).'</code></pre>';
    5152    }
    5253}
Note: See TracChangeset for help on using the changeset viewer.