Plugin Directory

Changeset 1103303


Ignore:
Timestamp:
03/02/2015 02:02:08 PM (11 years ago)
Author:
joychao.cc
Message:

4.4.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cn-excerpt/trunk/wp-cn-excerpt.php

    r1103280 r1103303  
    1515    protected $options = array(
    1616        'length'          => 100,
    17         'only_excerpt'    => 1,
    1817        'no_shortcode'    => 1,
    1918        'finish_sentence' => 0,
     
    7574
    7675        add_filter('the_excerpt', array($this, 'filter'), 99999999);
    77         add_filter('the_content', array($this, 'filter'), 99999999);
    7876    }
    7977
     
    363361    {
    364362        $maxLength      = (int)$_POST[$this->name . '_length'];
    365         $onlyExcerpt    = ('on' == $_POST[$this->name . '_only_excerpt']) ? 0 : 1;
    366363        $noShortcode    = ('on' == $_POST[$this->name . '_no_shortcode']) ? 1 : 0;
    367364        $finishSentence = ('on' == $_POST[$this->name . '_finish_sentence']) ? 1 : 0;
     
    376373
    377374        update_option($this->name . '_length', $maxLength);
    378         update_option($this->name . '_only_excerpt', $onlyExcerpt);
    379375        update_option($this->name . '_no_shortcode', $noShortcode);
    380376        update_option($this->name . '_finish_sentence', $finishSentence);
Note: See TracChangeset for help on using the changeset viewer.