WP-e-Commerce
WP-e-Commerce copied to clipboard
Don't abuse `the_title` filter so badly.
Looking at my logs, I'm seeing a lot of warnings about a filter I added to the_title, many of which come from WPeC.
According to the the_title docs, the filter takes exactly 2 arguments: The string to be filtered, and the post ID.
There are plenty of places in WPeC where we're passing just a single argument, (for example, wpsc-components/theme-engine-v1/widgets/latest_product_widget.php, line 150).
In Line 362 of wpsc-includes/cart-item.class.php we're even passing an instance of the WPSC_Cart_Item class as the second argument, instead of an ID.