WordPress.org

Plugin Directory

Changeset 461698


Ignore:
Timestamp:
11/11/11 09:22:53 (2 years ago)
Author:
bolo1988
Message:
 
Location:
taobaoke/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • taobaoke/trunk/readme.txt

    r454750 r461698  
    4949== Changelog == 
    5050 
     51= 1.1.1 = 
     52* 修复了商品信息不能保存的bug 
     53 
    5154= 1.1 = 
    5255* 修复和 wp-taobaoke 插件得冲突(强烈建议安装了1.0版用户把插件完全删除安装新版!) 
  • taobaoke/trunk/taobaoke.php

    r454750 r461698  
    66Author: CodeCTO 
    77Author URI: http://codecto.com/ 
    8 Version: 1.1 
     8Version: 1.1.1 
    99*/ 
    1010 
     
    6565    global $post_ID; 
    6666     
    67     $TBK_item_link = get_post_meta($post_ID,'TBK_item_url',true); 
     67    $TBK_item_source_url = get_post_meta($post_ID,'TBK_item_source_url',true); 
     68    $TBK_item_link = get_post_meta($post_ID,'TBK_item_link',true); 
    6869    $TBK_item_img = get_post_meta($post_ID,'TBK_item_img',true); 
    6970    $TBK_item_price = get_post_meta($post_ID,'TBK_item_price',true); 
     
    153154<tr valign="top"> 
    154155    <td class="first">淘宝商品源链接:</td> 
    155     <td><input type="text" id="TBK_item_source_url" name="TBK_item_source_url" size="90" value="<?php echo esc_attr($TBK_item_link);?>" /> <a class="preview button" href="#" onclick="TBK_request();return false;">填充产品信息</a></td> 
     156    <td><input type="text" id="TBK_item_source_url" name="TBK_item_source_url" size="90" value="<?php echo esc_attr($TBK_item_source_url);?>" /> <a class="preview button" href="#" onclick="TBK_request();return false;">填充产品信息</a></td> 
    156157</tr> 
    157158<tr valign="top"> 
     
    180181} 
    181182 
     183add_action('save_post', 'TBK_save_post'); 
    182184function TBK_save_post($post_id){ 
    183185    if(!current_user_can('edit_post',$post_id)){ 
Note: See TracChangeset for help on using the changeset viewer.