WordPress.org

Plugin Directory

Changeset 610518


Ignore:
Timestamp:
10/10/12 22:05:45 (18 months ago)
Author:
eskapism
Message:

version 1.0.1

Location:
simple-fields/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • simple-fields/trunk/functions.php

    r609729 r610518  
    229229         
    230230        // Field groups should only be allowed to be 0 if the group is repeatable 
    231         if ($num_added_field_groups == 0 && @!$one_field_group['repeatable']) { 
     231        if ($num_added_field_groups == 0 && (isset($one_field_group['repeatable']) && !$one_field_group['repeatable']) ) { 
    232232            $num_added_field_groups++; 
    233233        } 
  • simple-fields/trunk/readme.txt

    r609729 r610518  
    22Contributors: eskapism, MarsApril, samface, angrycreative, earth people 
    33Donate link: http://eskapism.se/sida/donate/ 
    4 Tags: admin, fields, 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, field manager, attachments, text areas, input fields, tinymce, radio button, drop down, files, meta box, edit, post, post_meta, post meta, custom 
    55Requires at least: 3.3.1 
    66Tested up to: 3.4.2 
    7 Stable tag: 1.0 
     7Stable tag: 1.0.1 
    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. 
     
    2929http://eskapism.se/blogg/2010/05/simple-fields-wp-custom-fields-on-steroids/ 
    3030 
    31 Also check out this short tutorial: 
    32 http://eskapism.se/code-playground/simple-fields/tutorial/ 
     31To get started check out the getting started section here: 
     32http://simple-fields.com/documentation/getting-started/ 
    3333 
    3434#### Upgrading? Then backup your database 
     
    4343 
    4444#### Donation and more plugins 
    45 * If you like this plugin don't forget to [donate to support further development](http://eskapism.se/sida/donate/). 
     45* If you like this plugin don't forget to [donate to support further development](http://simple-fields.com/about/donate/). 
    4646* Also check out some [more CMS-focused plugins](http://wordpress.org/extend/plugins/profile/eskapism) by the same author. 
    4747 
     
    54541. Activate the plugin through the "Plugins" menu in WordPress 
    55551. Start poking around with Simple Fields under Settings > Simple Fields 
    56 1. Get help at http://eskapism.se/code-playground/simple-fields/ and ask your questions at http://wordpress.org/tags/simple-fields?forum_id=10 
     561. Get help at http://eskapism.se/code-playground/simple-fields/ and ask your questions at http://wordpress.org/support/plugin/simple-fields 
    57571. That's it; you know have a super cool and powerful CMS based on WordPress! 
    5858 
     
    164164 
    165165== Changelog == 
     166 
     167#### Version 1.0.1 
     168- Fixed: some warning and notice-errors, for example when a post connector did not have any field groups connected 
    166169 
    167170#### Version 1.0 
  • simple-fields/trunk/simple_fields.php

    r609729 r610518  
    44Plugin URI: http://eskapism.se/code-playground/simple-fields/ 
    55Description: Add groups of textareas, input-fields, dropdowns, radiobuttons, checkboxes and files to your edit post screen. 
    6 Version: 1.0 
     6Version: 1.0.1 
    77Author: Pär Thernström 
    88Author URI: http://eskapism.se/ 
     
    5252        define( "SIMPLE_FIELDS_URL", plugins_url(basename(dirname(__FILE__))). "/"); 
    5353        define( "SIMPLE_FIELDS_NAME", "Simple Fields"); 
    54         define( "SIMPLE_FIELDS_VERSION", "1.0"); 
     54        define( "SIMPLE_FIELDS_VERSION", "1.0.1"); 
    5555 
    5656        load_plugin_textdomain( 'simple-fields', null, basename(dirname(__FILE__)).'/languages/'); 
     
    984984         
    985985            $num_fields_in_group = 0; 
    986             foreach ($connectors[$i]["field_groups"] as $one_group) { 
    987                 if (!$one_group["deleted"]) $num_fields_in_group++; 
     986            if (isset($connectors[$i]["field_groups"]) && is_array($connectors[$i]["field_groups"])) { 
     987                foreach ($connectors[$i]["field_groups"] as $one_group) { 
     988                    if (isset($one_group["deleted"]) && !$one_group["deleted"]) $num_fields_in_group++; 
     989                } 
    988990            } 
    989991            $connectors[$connectors[$i]["id"]]["field_groups_count"] = $num_fields_in_group; 
     
    20552057                    $post_connectors[$connector_id]["name"] = (string) stripslashes($_POST["post_connector_name"]); 
    20562058                    $post_connectors[$connector_id]["slug"] = (string) ($_POST["post_connector_slug"]); 
    2057                     $post_connectors[$connector_id]["field_groups"] = (array) $_POST["added_fields"]; 
     2059                    $post_connectors[$connector_id]["field_groups"] = (array) @$_POST["added_fields"]; 
    20582060                    $post_connectors[$connector_id]["post_types"] = (array) @$_POST["post_types"]; 
    20592061                    $post_connectors[$connector_id]["hide_editor"] = (bool) @$_POST["hide_editor"]; 
     
    27812783 
    27822784// Boot it up! 
     2785global $sf; 
    27832786$sf = new simple_fields(); 
    27842787$sf->init(); 
Note: See TracChangeset for help on using the changeset viewer.