Changeset 885480
- Timestamp:
- 04/01/2014 05:43:12 AM (12 years ago)
- Location:
- sau-syntax/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
syntax.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sau-syntax/trunk/readme.txt
r839438 r885480 4 4 Tags: syntax, syntax highlighter, sau syntax, highlighter, highlighting 5 5 Requires at least: 3.6 6 Tested up to: 3.8 7 Stable tag: 1. 26 Tested up to: 3.8.1 7 Stable tag: 1.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 37 37 == Changelog == 38 38 39 = 1.3 = 40 * Fixed to show HTML code and PHP code which defined in shortcodes 41 39 42 = 1.2 = 40 43 * Fixed auto paragraph in source code. -
sau-syntax/trunk/syntax.php
r839438 r885480 4 4 * Plugin URI: http://hocwp.net/blog/sau-syntax-plugin/ 5 5 * Description: Sau Syntax is the easiest way to post source code on your blog posts. 6 * Version: 1. 26 * Version: 1.3 7 7 * Author: Sau Hi 8 8 * Author URI: http://hocwp.net … … 48 48 } 49 49 $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>'; 51 52 } 52 53 }
Note: See TracChangeset
for help on using the changeset viewer.