Plugin Directory

Changeset 165423


Ignore:
Timestamp:
10/21/2009 08:44:35 AM (16 years ago)
Author:
elebail
Message:

Add special char replacing

Location:
wp-category-meta
Files:
10 added
6 edited

Legend:

Unmodified
Added
Removed
  • wp-category-meta/trunk/lang/wp-category-meta-en_US.po

    r165158 r165423  
    33"Project-Id-Version: 1.0.0\n"
    44"POT-Creation-Date: 2009-03-19\n"
    5 "PO-Revision-Date: 2009-10-20 16:38+0100\n"
     5"PO-Revision-Date: 2009-10-21 10:30+0100\n"
    66"Last-Translator: Eric Le Bail <[email protected]>\n"
    77"Language-Team: en_US\n"
     
    4949msgstr "Add meta"
    5050
     51msgid "Sanitize meta name"
     52msgstr "Replace special characters into meta name"
     53
  • wp-category-meta/trunk/lang/wp-category-meta-fr_FR.po

    r165158 r165423  
    33"Project-Id-Version: 1.0.0\n"
    44"POT-Creation-Date: 2009-03-19\n"
    5 "PO-Revision-Date: 2009-10-20 16:38+0100\n"
     5"PO-Revision-Date: 2009-10-21 10:30+0100\n"
    66"Last-Translator: Eric Le Bail <[email protected]>\n"
    77"Language-Team: fr_FR\n"
     
    4949msgstr "Ajouter la méta"
    5050
     51msgid "Sanitize meta name"
     52msgstr "Replacer les caratères spéciaux dans le nom de la méta"
     53
  • wp-category-meta/trunk/readme.txt

    r165161 r165423  
    1717
    1818This plugin has been tested with WP2.6.5, WP2.8.4 and WPmu2.8.4
     19
     20Updates:
     211.0.1 : Add the possibility to replace special chars into meta name in the meta creation form in the option page.
     221.0.0 : Add the option page to easily configure the meta list
     23
     24== Update Log ==
     25
     261.0.1 : Add the possibility to replace special chars into meta name in the meta creation form in the option page.
     271.0.0 : Add the option page to easily configure the meta list
     280.0.1 : plugin initial creation.
    1929
    2030== Installation ==
  • wp-category-meta/trunk/views/options.php

    r165158 r165423  
    4848        {
    4949            $new_meta_name = $_POST["new_meta_name"];
     50            $new_meta_name_sanitize = $_POST["new_meta_name_sanitize"];
    5051            // Sanitize the entered string to avoid special char problems
    51             $new_meta_name = sanitize_title($new_meta_name);
     52            if($new_meta_name_sanitize == 1)
     53            {
     54                $new_meta_name = sanitize_title($new_meta_name);
     55            }
    5256            $new_meta_type = $_POST["new_meta_type"];
    5357            $configuration[$new_meta_name] = $new_meta_type;
     
    113117                    </tr>
    114118                    <tr class="mainrow">       
     119                        <td class="titledesc"><?php _e('Sanitize meta name','wp-category-meta'); ?>:</td>
     120                        <td class="forminp">
     121                            <input type="checkbox" id="new_meta_name_sanitize" name="new_meta_name_sanitize" value="1" checked="checked" />
     122                        </td>
     123                    </tr>
     124                    <tr class="mainrow">       
    115125                        <td class="titledesc"><?php _e('Meta Type','wp-category-meta'); ?>:</td>
    116126                        <td class="forminp">
Note: See TracChangeset for help on using the changeset viewer.