wpsmith / genesis-sandbox-featured-content-widget

Genesis Sandbox Featured Content Widget. Based on Nick Croft's Genesis Featured Widget Amplified for additional functionality which allows support for custom post types, taxonomies, and extends the flexibility of the widget via action hooks to allow the elements to be re-positioned or other elements to be added.
39 stars 21 forks source link

Still run the_title filters on post titles. #61

Open methnen opened 9 years ago

methnen commented 9 years ago

The title used by the widget is built out of the title value returned by the_title_attribute method. This is likely to make it easier to truncate the titles.

The draw back to this is that the titles then never pass through the the_title filters which is a problem if the title has any values that should really be entities or that need any type of escaping. It also causes problems for any other plugins that rely on that filter hook for their own functionality.

This small change fixes that issue.