Plugin Directory

Changeset 2114952


Ignore:
Timestamp:
06/30/2019 10:34:14 AM (7 years ago)
Author:
nath4n
Message:

Update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • censorship/trunk/init.php

    r2114939 r2114952  
    308308                                            <?php
    309309                                                $currSettings = maybe_unserialize( get_option( 'censorship-settings' ) );
    310                                                 if( in_array('*****', $currSettings['chrReplace']) ) {
     310                                                if( $currSettings['chrReplace'] == "*****" ) {
    311311                                                    echo '<input type="radio" name="replacement[]" value="*****" checked>';
    312312                                                } else {
     
    315315                                                echo '<i>Stars</i> ( "<b>*****</b>" )<br>';
    316316                                               
    317                                                 if( !in_array('*****', $currSettings['chrReplace']) && !in_array('#####', $currSettings['chrReplace']) ) {
     317                                                if( $currSettings['chrReplace'] !== "*****" ) {
    318318                                                    echo '<input type="radio" name="replacement[]" value="custom" checked>';
     319                                                    echo '<i>Custom</i> : <input type="text" name="txtCustom" value="' . $currSettings['chrReplace'] . '" placeholder="%@!#%&amp;">';
    319320                                                } else {
    320321                                                    echo '<input type="radio" name="replacement[]" value="custom">';
    321                                                 }
    322                                                 echo '<i>Custom</i> : <input type="text" name="txtCustom" value="' . $currSettings['chrReplace'][0] . '" placeholder="%@!#%&amp;">';
     322                                                    echo '<i>Custom</i> : <input type="text" name="txtCustom" value="" placeholder="%@!#%&amp;">';
     323                                                }                                               
    323324                                            ?>
    324325                                            </td>
Note: See TracChangeset for help on using the changeset viewer.