Skip to content

Small bug with excerpt filter #30

@weidmaster

Description

@weidmaster

I updated the plugin to the latest version and the excerpt filter was not working anymore.

I went to the code to see what was wrong and it is missing the priority. It was set in the previous version, so it is interesting to see it missing in the update.

On file: ultimate-posts-widget.php
On line: 151

Where it reads:
if ( $instance['excerpt_length'] > 0 ) add_filter('excerpt_length', $new_excerpt_length);

Change to:
if ( $instance['excerpt_length'] > 0 ) add_filter('excerpt_length', $new_excerpt_length, 999);

And then the filter work as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions