Changeset 1103303
- Timestamp:
- 03/02/2015 02:02:08 PM (11 years ago)
- File:
-
- 1 edited
-
cn-excerpt/trunk/wp-cn-excerpt.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cn-excerpt/trunk/wp-cn-excerpt.php
r1103280 r1103303 15 15 protected $options = array( 16 16 'length' => 100, 17 'only_excerpt' => 1,18 17 'no_shortcode' => 1, 19 18 'finish_sentence' => 0, … … 75 74 76 75 add_filter('the_excerpt', array($this, 'filter'), 99999999); 77 add_filter('the_content', array($this, 'filter'), 99999999);78 76 } 79 77 … … 363 361 { 364 362 $maxLength = (int)$_POST[$this->name . '_length']; 365 $onlyExcerpt = ('on' == $_POST[$this->name . '_only_excerpt']) ? 0 : 1;366 363 $noShortcode = ('on' == $_POST[$this->name . '_no_shortcode']) ? 1 : 0; 367 364 $finishSentence = ('on' == $_POST[$this->name . '_finish_sentence']) ? 1 : 0; … … 376 373 377 374 update_option($this->name . '_length', $maxLength); 378 update_option($this->name . '_only_excerpt', $onlyExcerpt);379 375 update_option($this->name . '_no_shortcode', $noShortcode); 380 376 update_option($this->name . '_finish_sentence', $finishSentence);
Note: See TracChangeset
for help on using the changeset viewer.