• Resolved votejimmartin

    (@votejimmartin)


    Found another problem. Your WP_Widget_Ultimate_Posts->widget() method adds filters but does not remove them when widget output is complete. This causes the filters of other plug-ins and templates to fail to be executed correctly because your filters are given preference to content that is not intended to be filtered by your widget. In example, archive pages only show 10 words of posts and each ends in an ellipse versus the normal 55 words with a “read more” link default or other custom length and “read more” filtering. The problem lies on lines 157 and 163 of the ultimate-posts-widget.php file. To fix this collision bug, place the following code immediately after the wp_cache_set() call on line 220:

    remove_filter(‘excerpt_more’, $new_excerpt_more);
    remove_filter(‘excerpt_length’, $new_excerpt_length);

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Filters of widget bugger up outside settings.’ is closed to new replies.