Plugin Directory

Changeset 922213


Ignore:
Timestamp:
05/28/2014 06:46:56 AM (12 years ago)
Author:
aprea
Message:

4.2.1 release

Location:
advanced-excerpt
Files:
22 added
4 edited

Legend:

Unmodified
Added
Removed
  • advanced-excerpt/trunk/advanced-excerpt.php

    r921436 r922213  
    44Plugin URI: http://wordpress.org/plugins/advanced-excerpt/
    55Description: Control the appearance of WordPress post excerpts
    6 Version: 4.2
     6Version: 4.2.1
    77Author: Delicious Brains
    88Author URI: http://deliciousbrains.com/
    99*/
    1010
    11 $GLOBALS['advanced_excerpt_version'] = '4.2';
     11$GLOBALS['advanced_excerpt_version'] = '4.2.1';
    1212
    1313function advanced_excerpt_load_textdomain() {
  • advanced-excerpt/trunk/class/advanced-excerpt.php

    r921436 r922213  
    238238
    239239        // Determine allowed tags
    240         if ( !isset( $allowed_tags ) ) {
     240        if ( empty( $allowed_tags ) ) {
    241241            $allowed_tags = $this->options_all_tags;
    242242        }
    243243
    244         if ( isset( $exclude_tags ) ) {
     244        if ( ! empty( $exclude_tags ) ) {
    245245            $allowed_tags = array_diff( $allowed_tags, $exclude_tags );
    246246        }
  • advanced-excerpt/trunk/functions/functions.php

    r921436 r922213  
    5151    }
    5252
     53    if ( ! empty( $args['allowed_tags'] ) || ! empty( $args['exclude_tags'] ) ) {
     54        if ( isset( $args['allowed_tags'] ) && ! in_array( '_all', (array) $args['allowed_tags'] ) ) {
     55            $args['allowed_tags_option'] = 'remove_all_tags_except';
     56        } else if ( ! isset( $args['allowed_tags'] ) ) {
     57            $args['allowed_tags_option'] = 'remove_all_tags_except';
     58        }
     59    }
     60
    5361    // Set temporary options
    54     $advanced_excerpt->options = $args;
     62    $advanced_excerpt->options = wp_parse_args( $args, $advanced_excerpt->default_options );
    5563
    5664    if ( $get ) {
  • advanced-excerpt/trunk/readme.txt

    r921444 r922213  
    55Requires at least: 3.2
    66Tested up to: 3.9
    7 Stable tag: 4.2
     7Stable tag: 4.2.1
    88License: GPLv3
    99
     
    9797== Changelog ==
    9898
     99== 4.2.1 ==
     100* Fix: Undefined index errors when using the `the_advanced_excerpt()` function
     101* Fix: Not excluding tags when using the `exclude_tags` argument in the `the_advanced_excerpt()` function
     102
    99103= 4.2 =
    100104* Feature: Toggle excerpt filtering when there's no break (<!--more-->) tag in the post content
Note: See TracChangeset for help on using the changeset viewer.