WordPress.org

Ready to get started?Download WordPress

Forums

CPT-onomies: Using Custom Post Types as Taxonomies
[resolved] the_title filter (3 posts)

  1. Travis Smith
    Member
    Posted 2 years ago #

    Line 1236 of cpt_onomy.php causes issues if someone adds a filter to 'the_title' elsewhere since you do not utilize the second argument.

    The proper use of the filter is $title = apply_filters('the_title', $title, $post->ID);. So anyone who uses both arguments will cause notices in WP_DEBUG for your filter.

    http://wordpress.org/extend/plugins/cpt-onomies/

  2. Travis Smith
    Member
    Posted 2 years ago #

    Also line 44, 'name' => apply_filters( 'the_title', $term->post_title ),

  3. Rachel Carden
    Member
    Plugin Author

    Posted 2 years ago #

    All fixed in the next version! Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic