WordPress.org

Plugin Directory

Changeset 741297


Ignore:
Timestamp:
07/15/13 21:07:24 (9 months ago)
Author:
eskapism
Message:

version 1.4.1

Location:
simple-fields
Files:
2 edited
29 copied

Legend:

Unmodified
Added
Removed
  • simple-fields/tags/1.4.1/readme.txt

    r740248 r741297  
    55Requires at least: 3.5.1 
    66Tested up to: 3.5.1 
    7 Stable tag: 1.4 
     7Stable tag: 1.4.1 
    88 
    99With Simple Fields you can add any kind of custom fields to your pages, posts and attachments. 
     
    144144 
    145145== Changelog == 
     146 
     147#### Version 1.4.1 
     148- Bugfix for WPML and "Call to undefined function"-errors 
    146149 
    147150#### Version 1.4 
  • simple-fields/tags/1.4.1/simple_fields.php

    r740248 r741297  
    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.4 
     6Version: 1.4.1 
    77Author: Pär Thernström 
    88Author URI: http://eskapism.se/ 
     
    5858 
    5959 
    60         define( "SIMPLE_FIELDS_VERSION", "1.4"); 
     60        define( "SIMPLE_FIELDS_VERSION", "1.4.1"); 
    6161        define( "SIMPLE_FIELDS_URL", plugins_url(basename(dirname(__FILE__))). "/"); 
    6262        define( "SIMPLE_FIELDS_NAME", "Simple Fields"); 
     
    281281    function register_wpml_strings() { 
    282282         
     283        // sometimes icl_register_string does not exist,  
     284        // probably because simple fields hooks on tings early  
     285        // when wpml is not loaded (like when saving) 
     286        if ( ! function_exists("icl_register_string" ) ) return; 
     287 
    283288        // Get all fieldgroups and fields 
    284289        $field_groups = $this->get_field_groups(); 
     
    316321 
    317322                    } // if radiobuttons 
     323 
    318324                    if ( isset( $field["options"]["dropdown"]["values"] ) && is_array( $field["options"]["dropdown"]["values"] ) ) { 
    319325     
     
    367373    function get_string($name = "", $value = "") { 
    368374 
    369         if ( $this->is_wpml_active() ) { 
     375        if ( $this->is_wpml_active() && function_exists("icl_t") ) { 
    370376            $value = icl_t($this->wpml_context, $name, $value); 
    371377            // $value = "WPML: $value"; // debug to check that function actually runs 
  • simple-fields/trunk/readme.txt

    r740248 r741297  
    55Requires at least: 3.5.1 
    66Tested up to: 3.5.1 
    7 Stable tag: 1.4 
     7Stable tag: 1.4.1 
    88 
    99With Simple Fields you can add any kind of custom fields to your pages, posts and attachments. 
     
    144144 
    145145== Changelog == 
     146 
     147#### Version 1.4.1 
     148- Bugfix for WPML and "Call to undefined function"-errors 
    146149 
    147150#### Version 1.4 
  • simple-fields/trunk/simple_fields.php

    r740248 r741297  
    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.4 
     6Version: 1.4.1 
    77Author: Pär Thernström 
    88Author URI: http://eskapism.se/ 
     
    5858 
    5959 
    60         define( "SIMPLE_FIELDS_VERSION", "1.4"); 
     60        define( "SIMPLE_FIELDS_VERSION", "1.4.1"); 
    6161        define( "SIMPLE_FIELDS_URL", plugins_url(basename(dirname(__FILE__))). "/"); 
    6262        define( "SIMPLE_FIELDS_NAME", "Simple Fields"); 
     
    281281    function register_wpml_strings() { 
    282282         
     283        // sometimes icl_register_string does not exist,  
     284        // probably because simple fields hooks on tings early  
     285        // when wpml is not loaded (like when saving) 
     286        if ( ! function_exists("icl_register_string" ) ) return; 
     287 
    283288        // Get all fieldgroups and fields 
    284289        $field_groups = $this->get_field_groups(); 
     
    316321 
    317322                    } // if radiobuttons 
     323 
    318324                    if ( isset( $field["options"]["dropdown"]["values"] ) && is_array( $field["options"]["dropdown"]["values"] ) ) { 
    319325     
     
    367373    function get_string($name = "", $value = "") { 
    368374 
    369         if ( $this->is_wpml_active() ) { 
     375        if ( $this->is_wpml_active() && function_exists("icl_t") ) { 
    370376            $value = icl_t($this->wpml_context, $name, $value); 
    371377            // $value = "WPML: $value"; // debug to check that function actually runs 
Note: See TracChangeset for help on using the changeset viewer.