WordPress.org

Plugin Directory

Changeset 621362


Ignore:
Timestamp:
11/05/12 18:44:40 (18 months ago)
Author:
eskapism
Message:

version 1.1.2

Location:
simple-fields
Files:
3 edited
17 copied

Legend:

Unmodified
Added
Removed
  • simple-fields/tags/1.1.2/class_simple_fields_field.php

    r620797 r621362  
    115115     */ 
    116116    function return_values($values) { 
    117         // Simply return values if not redefined by child class 
    118         // Thought: to make it more work like core/legacy plugins, let's return the first thing if only one thing exists 
    119         // Or always, as long as developer does not haz overridz the methodz 
    120         foreach ($values as &$one_value) { 
    121             if (sizeof($one_value) == 1) { 
    122                 $one_value = current($one_value); 
     117 
     118        if (is_array($values)) { 
     119            // Thought: to make it more work like core/legacy plugins, let's return the first thing if only one thing exists 
     120            // Or always, as long as developer does not haz overridz the methodz 
     121            foreach ($values as &$one_value) { 
     122 
     123                if (is_array($one_value)) { 
     124                    if (sizeof($one_value) == 1) { 
     125                        $one_value = current($one_value); 
     126                    } 
     127                } else { 
     128                    // value is not array, then let it be 
     129                } 
    123130            } 
     131        } else { 
     132            // Not an array 
    124133        } 
     134 
    125135        return $values; 
     136 
    126137    } 
    127138 
  • simple-fields/tags/1.1.2/readme.txt

    r620800 r621362  
    11=== Simple Fields === 
    2 Contributors: eskapism, MarsApril, samface, angrycreative, earth people 
     2Contributors: eskapism, MarsApril, samface, angrycreative, Earth People 
    33Donate link: http://simple-fields.com/about/donate/ 
    4 Tags: admin, fields, custom fields, advanced custom fields, extended custom fields, field manager, attachments, text areas, input fields, tinymce, radio button, drop down, files, meta box, edit, post, post_meta, post meta, custom 
     4Tags: admin, fields, custom fields, advanced custom fields, extended custom fields, more fields, repeatable fields, field manager, attachments, text areas, input fields, tinymce, radio button, drop down, files, meta box, edit, post, post_meta, post meta, custom, simple fields, cms, date picker, time picker, repeatable fields, multiple fields 
    55Requires at least: 3.3.1 
    66Tested up to: 3.4.2 
    7 Stable tag: 1.1.1 
     7Stable tag: 1.1.2 
    88 
    99Add more advanced custom fields types to your edit post page. Field can be of several types, including textarea, checkbox, radio buttons, files and color picker. 
     
    164164 
    165165== Changelog == 
     166 
     167#### Version 1.1.2 
     168- Fixed script error (sortable not found) on settings page. 
     169- Fixed problem with return values, field divider gave an error... 
     170- Fixed wrong position of repeater drag handle (wrong position on repeating fields) 
     171- Added: method edit_save() for Field Extensions API. Let you modify the values before being saved in database. (Actually this was added in last version, but I forgot about it then..) 
    166172 
    167173#### Version 1.1.1 
  • simple-fields/tags/1.1.2/simple_fields.php

    r620800 r621362  
    44Plugin URI: http://simple-fields.com 
    55Description: Add groups of textareas, input-fields, dropdowns, radiobuttons, checkboxes and files to your edit post screen. 
    6 Version: 1.1.1 
     6Version: 1.1.2 
    77Author: Pär Thernström 
    88Author URI: http://eskapism.se/ 
     
    5555        define( "SIMPLE_FIELDS_URL", plugins_url(basename(dirname(__FILE__))). "/"); 
    5656        define( "SIMPLE_FIELDS_NAME", "Simple Fields"); 
    57         define( "SIMPLE_FIELDS_VERSION", "1.1.1"); 
     57        define( "SIMPLE_FIELDS_VERSION", "1.1.2"); 
    5858 
    5959        load_plugin_textdomain( 'simple-fields', null, basename(dirname(__FILE__)).'/languages/'); 
     
    224224 
    225225            // Edit post etc. 
    226             wp_enqueue_script("jquery-ui-core"); 
    227             wp_enqueue_script("jquery-ui-sortable"); 
    228             wp_enqueue_script("jquery-ui-dialog"); 
    229             wp_enqueue_style('wp-jquery-ui-dialog'); 
    230             wp_enqueue_script("jquery-effects-highlight"); 
    231226            wp_enqueue_script("thickbox"); 
    232227            wp_enqueue_style("thickbox"); 
     
    241236 
    242237        // Common scripts 
     238 
     239        wp_enqueue_script("jquery-ui-core"); 
     240        wp_enqueue_script("jquery-ui-sortable"); 
     241        wp_enqueue_script("jquery-ui-dialog"); 
     242        wp_enqueue_style('wp-jquery-ui-dialog'); 
     243        wp_enqueue_script("jquery-effects-highlight"); 
     244 
    243245        wp_register_script('simple-fields-scripts', SIMPLE_FIELDS_URL.'scripts.js', false, SIMPLE_FIELDS_VERSION); 
    244246        wp_localize_script('simple-fields-scripts', 'sfstrings', array( 
  • simple-fields/trunk/class_simple_fields_field.php

    r620797 r621362  
    115115     */ 
    116116    function return_values($values) { 
    117         // Simply return values if not redefined by child class 
    118         // Thought: to make it more work like core/legacy plugins, let's return the first thing if only one thing exists 
    119         // Or always, as long as developer does not haz overridz the methodz 
    120         foreach ($values as &$one_value) { 
    121             if (sizeof($one_value) == 1) { 
    122                 $one_value = current($one_value); 
     117 
     118        if (is_array($values)) { 
     119            // Thought: to make it more work like core/legacy plugins, let's return the first thing if only one thing exists 
     120            // Or always, as long as developer does not haz overridz the methodz 
     121            foreach ($values as &$one_value) { 
     122 
     123                if (is_array($one_value)) { 
     124                    if (sizeof($one_value) == 1) { 
     125                        $one_value = current($one_value); 
     126                    } 
     127                } else { 
     128                    // value is not array, then let it be 
     129                } 
    123130            } 
     131        } else { 
     132            // Not an array 
    124133        } 
     134 
    125135        return $values; 
     136 
    126137    } 
    127138 
  • simple-fields/trunk/readme.txt

    r620800 r621362  
    11=== Simple Fields === 
    2 Contributors: eskapism, MarsApril, samface, angrycreative, earth people 
     2Contributors: eskapism, MarsApril, samface, angrycreative, Earth People 
    33Donate link: http://simple-fields.com/about/donate/ 
    4 Tags: admin, fields, custom fields, advanced custom fields, extended custom fields, field manager, attachments, text areas, input fields, tinymce, radio button, drop down, files, meta box, edit, post, post_meta, post meta, custom 
     4Tags: admin, fields, custom fields, advanced custom fields, extended custom fields, more fields, repeatable fields, field manager, attachments, text areas, input fields, tinymce, radio button, drop down, files, meta box, edit, post, post_meta, post meta, custom, simple fields, cms, date picker, time picker, repeatable fields, multiple fields 
    55Requires at least: 3.3.1 
    66Tested up to: 3.4.2 
    7 Stable tag: 1.1.1 
     7Stable tag: 1.1.2 
    88 
    99Add more advanced custom fields types to your edit post page. Field can be of several types, including textarea, checkbox, radio buttons, files and color picker. 
     
    164164 
    165165== Changelog == 
     166 
     167#### Version 1.1.2 
     168- Fixed script error (sortable not found) on settings page. 
     169- Fixed problem with return values, field divider gave an error... 
     170- Fixed wrong position of repeater drag handle (wrong position on repeating fields) 
     171- Added: method edit_save() for Field Extensions API. Let you modify the values before being saved in database. (Actually this was added in last version, but I forgot about it then..) 
    166172 
    167173#### Version 1.1.1 
  • simple-fields/trunk/simple_fields.php

    r620800 r621362  
    44Plugin URI: http://simple-fields.com 
    55Description: Add groups of textareas, input-fields, dropdowns, radiobuttons, checkboxes and files to your edit post screen. 
    6 Version: 1.1.1 
     6Version: 1.1.2 
    77Author: Pär Thernström 
    88Author URI: http://eskapism.se/ 
     
    5555        define( "SIMPLE_FIELDS_URL", plugins_url(basename(dirname(__FILE__))). "/"); 
    5656        define( "SIMPLE_FIELDS_NAME", "Simple Fields"); 
    57         define( "SIMPLE_FIELDS_VERSION", "1.1.1"); 
     57        define( "SIMPLE_FIELDS_VERSION", "1.1.2"); 
    5858 
    5959        load_plugin_textdomain( 'simple-fields', null, basename(dirname(__FILE__)).'/languages/'); 
     
    224224 
    225225            // Edit post etc. 
    226             wp_enqueue_script("jquery-ui-core"); 
    227             wp_enqueue_script("jquery-ui-sortable"); 
    228             wp_enqueue_script("jquery-ui-dialog"); 
    229             wp_enqueue_style('wp-jquery-ui-dialog'); 
    230             wp_enqueue_script("jquery-effects-highlight"); 
    231226            wp_enqueue_script("thickbox"); 
    232227            wp_enqueue_style("thickbox"); 
     
    241236 
    242237        // Common scripts 
     238 
     239        wp_enqueue_script("jquery-ui-core"); 
     240        wp_enqueue_script("jquery-ui-sortable"); 
     241        wp_enqueue_script("jquery-ui-dialog"); 
     242        wp_enqueue_style('wp-jquery-ui-dialog'); 
     243        wp_enqueue_script("jquery-effects-highlight"); 
     244 
    243245        wp_register_script('simple-fields-scripts', SIMPLE_FIELDS_URL.'scripts.js', false, SIMPLE_FIELDS_VERSION); 
    244246        wp_localize_script('simple-fields-scripts', 'sfstrings', array( 
Note: See TracChangeset for help on using the changeset viewer.