Skip to content

Don't abuse the_title filter so badly. #2361

@jbeales

Description

@jbeales

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions