-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels