Plugin Directory

Changeset 1003807


Ignore:
Timestamp:
10/08/2014 01:10:07 PM (11 years ago)
Author:
joychao.cc
Message:

后台勾选bugfix

Location:
cn-excerpt/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cn-excerpt/trunk/readme.txt

    r1003564 r1003807  
    55Requires at least: 3.2
    66Tested up to: 4.0
    7 Stable tag:4.3.3
     7Stable tag:4.3.4
    88
    99
  • cn-excerpt/trunk/wp-cn-excerpt.js

    r1003296 r1003807  
    6262    });
    6363
     64    $('input[id^="tag"]').click(function(){
     65        $('input[value="_all"]').attr('checked', false);
     66    });
     67
     68    $('input[value="_all"]').click(function(){
     69        $('input[id^="tag"]').attr('checked', false);
     70    });
     71
    6472    // Uncheck all boxes
    6573    $('#' + plugin_prefix + '_select_none').click(function(event)
  • cn-excerpt/trunk/wp-cn-excerpt.php

    r1003564 r1003807  
    44Plugin URI: http://wordpress.org/plugins/cn-excerpt/
    55Description: WordPress高级摘要插件。支持在后台设置摘要长度,摘要最后的显示字符,以及允许哪些html标记在摘要中显示
    6 Version:4.3.3
     6Version:4.3.4
    77Author: Carlos
    88Author URI: http://weibo.com/joychaocc
     
    362362        $readMore   = (get_magic_quotes_gpc() == 1) ? stripslashes($_POST[$this->name . '_read_more']) : $_POST[$this->name . '_read_more'];
    363363        $allowedTags = array_unique((array)$_POST[$this->name . '_allowed_tags']);
     364        if (in_array('_all', $allowedTags)) {
     365            $allowedTags = array('_all');
     366        }
    364367
    365368        update_option($this->name . '_length', $maxLength);
     
    370373        update_option($this->name . '_read_more', $readMore);
    371374        update_option($this->name . '_add_link', $addLink);
    372         update_option($this->name . '_allowedTags', $allowedTags);
     375        update_option($this->name . '_allowed_tags', $allowedTags);
    373376
    374377        $this->loadOptions();
Note: See TracChangeset for help on using the changeset viewer.