Plugin Directory

Changeset 1330929


Ignore:
Timestamp:
01/19/2016 01:17:57 AM (10 years ago)
Author:
hunk
Message:

tag 2.3.2.4

Location:
magic-fields-2/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • magic-fields-2/trunk/admin/mf_upload.php

    r1326142 r1330929  
    7979          $info = pathinfo(MF_FILES_DIR . $filename);
    8080
    81           $thumb =  aux_image($filename,"w=150&h=120&zc=1",'image_alt');
     81          $thumb =  ($_GET['type'] == 'image') ? aux_image($filename,"w=150&h=120&zc=1",'image_alt') : "";
    8282          $resp = array(
    8383            'error' => false,
  • magic-fields-2/trunk/main.php

    r1326142 r1330929  
    44 * Plugin URI: http://magicfields.org
    55 * Description: Create custom fields for your post types
    6  * Version: 2.3.2.3
     6 * Version: 2.3.2.4
    77 * Author:  Hunk
    88 * Author URI: http://magicfields.org
  • magic-fields-2/trunk/mf_front_end.php

    r1321819 r1330929  
    343343    //generate or check de thumb
    344344    $field_value = aux_image($field_value,$field_param,$field_type);
    345     if ( is_wp_error($field_value) && defined('WP_DEBUG') && WP_DEBUG == true ){
    346       return sprintf("%s: %s",__('Error generating thumbnail, reason',$mf_domain),$field_value->get_error_message());
    347     }
    348 
    349     return "";
     345    if ( is_wp_error($field_value)){
     346        if (defined('WP_DEBUG') && WP_DEBUG == true) {
     347            return sprintf("%s: %s",__('Error generating thumbnail, reason',$mf_domain),$field_value->get_error_message());
     348        } else {
     349            return "";
     350        }
     351    }
    350352   
    351353  }
  • magic-fields-2/trunk/readme.txt

    r1326142 r1330929  
    55Requires at least: 3.1
    66Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=edgar%40programador%2ecom&lc=GB&item_name=Donation%20Magic%20Fields&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest
    7 Stable tag: 2.3.2.3
     7Stable tag: 2.3.2.4
    88Description:  Magic Fields 2 is a feature rich Wordpress CMS plugin
    99
     
    2828
    2929== Changelog ==
     30
     31= 2.3.2.4 =
     32* fix problem with upload file field
     33* fix problem with get_image and gen_image, sorry
    3034
    3135= 2.3.2.3 =
Note: See TracChangeset for help on using the changeset viewer.