WordPress.org

Plugin Directory

Changeset 583956


Ignore:
Timestamp:
08/10/12 16:02:44 (21 months ago)
Author:
M66B
Message:

1.44 dev fix html entities by q7joey

Location:
shortcode-exec-php
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • shortcode-exec-php/tags/1.43/readme.txt

    r557367 r583956  
    119119 
    120120= Development version = 
     121* Fixed html entities (by *q7joey*, thanks!) 
    121122* Added Lithuanian (lt\_LT) by [Host1Free](http://www.host1free.com/ "Host1Free") 
    122123 
  • shortcode-exec-php/trunk/readme.txt

    r557367 r583956  
    119119 
    120120= Development version = 
     121* Fixed html entities (by *q7joey*, thanks!) 
    121122* Added Lithuanian (lt\_LT) by [Host1Free](http://www.host1free.com/ "Host1Free") 
    122123 
  • shortcode-exec-php/trunk/shortcode-exec-php-class.php

    r560953 r583956  
    1515define('c_scep_option_comment', 'scep_comment'); 
    1616define('c_scep_option_rss', 'scep_rss'); 
    17 define('c_scep_option_noent', 'scep_noent'); 
    1817define('c_scep_option_noautop', 'scep_noautop'); 
    1918define('c_scep_option_cleanup', 'scep_cleanup'); 
     
    259258                WPShortcodeExecPHP::Delete_option(c_scep_option_comment); 
    260259                WPShortcodeExecPHP::Delete_option(c_scep_option_rss); 
    261                 WPShortcodeExecPHP::Delete_option(c_scep_option_noent); 
    262260                WPShortcodeExecPHP::Delete_option(c_scep_option_noautop); 
    263261                WPShortcodeExecPHP::Delete_option(c_scep_option_codewidth); 
     
    378376                    if (empty($_POST[c_scep_option_rss])) 
    379377                        $_POST[c_scep_option_rss] = null; 
    380                     if (empty($_POST[c_scep_option_noent])) 
    381                         $_POST[c_scep_option_noent] = null; 
    382378                    if (empty($_POST[c_scep_option_noautop])) 
    383379                        $_POST[c_scep_option_noautop] = null; 
     
    398394                    WPShortcodeExecPHP::Update_option(c_scep_option_comment, $_POST[c_scep_option_comment]); 
    399395                    WPShortcodeExecPHP::Update_option(c_scep_option_rss, $_POST[c_scep_option_rss]); 
    400                     WPShortcodeExecPHP::Update_option(c_scep_option_noent, $_POST[c_scep_option_noent]); 
    401396                    WPShortcodeExecPHP::Update_option(c_scep_option_noautop, $_POST[c_scep_option_noautop]); 
    402397                    WPShortcodeExecPHP::Update_option(c_scep_option_codewidth, trim($_POST[c_scep_option_codewidth])); 
     
    475470            $scep_comment = (WPShortcodeExecPHP::Get_option(c_scep_option_comment) ? 'checked="checked"' : ''); 
    476471            $scep_rss = (WPShortcodeExecPHP::Get_option(c_scep_option_rss) ? 'checked="checked"' : ''); 
    477             $scep_noent = (WPShortcodeExecPHP::Get_option(c_scep_option_noent) ? 'checked="checked"' : ''); 
    478472            $scep_noautop = (WPShortcodeExecPHP::Get_option(c_scep_option_noautop) ? 'checked="checked"' : ''); 
    479473            $scep_width = (WPShortcodeExecPHP::Get_option(c_scep_option_codewidth)); 
     
    537531            </th><td> 
    538532                <input id="scep_option_rss" name="<?php echo c_scep_option_rss; ?>" type="checkbox"<?php echo $scep_rss; ?> /> 
    539             </td></tr> 
    540  
    541             <tr valign="top"><th scope="row"> 
    542                 <label for="scep_option_noent"><?php _e('Disable html entity encoding', c_scep_text_domain); ?></label> 
    543             </th><td> 
    544                 <input id="scep_option_noent" name="<?php echo c_scep_option_noent; ?>" type="checkbox"<?php echo $scep_noent; ?> /> 
    545533            </td></tr> 
    546534 
     
    902890            <tr><td><textarea name="<?php echo c_scep_form_phpcode . $i; ?>" id="<?php echo c_scep_form_phpcode . $i; ?>" 
    903891            style="width: <?php echo $scep_width; ?>px;height: <?php echo $scep_height; ?>px;" 
    904             ><?php echo WPShortcodeExecPHP::Get_option(c_scep_option_noent) ? $code : htmlentities($code, ENT_NOQUOTES, get_option('blog_charset')); ?></textarea></td></tr> 
     892            ><?php echo htmlentities($code, ENT_NOQUOTES, get_option('blog_charset')); ?></textarea></td></tr> 
    905893            <tr><td align="right"> 
    906894            <span name="scep_message" class="scep_message"></span> 
     
    10451033                $description = trim(stripslashes($_REQUEST[c_scep_param_description])); 
    10461034                $phpcode = $_REQUEST[c_scep_param_phpcode]; 
    1047                 if (!WPShortcodeExecPHP::Get_option(c_scep_option_noent)) 
    1048                     $phpcode = html_entity_decode($phpcode, ENT_NOQUOTES); 
    10491035                $phpcode = stripslashes($phpcode); 
    10501036 
Note: See TracChangeset for help on using the changeset viewer.