[wp-trac] [WordPress Trac] #26667: Improve filter in single_term_title()

WordPress Trac noreply at wordpress.org
Mon Feb 3 17:43:30 UTC 2014


#26667: Improve filter in single_term_title()
-------------------------+-----------------------------
 Reporter:  clifgriffin  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Taxonomy     |     Version:  3.8
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  template
-------------------------+-----------------------------

Comment (by clifgriffin):

 Replying to [comment:2 nacin]:
 > > Ideally I'd take this block completely out and simply add is_tax() to
 the first block.
 >
 > Hmm. I *think* I could go for this.

 Woot! That would make me very happy.

 Attaching a diff to implement it that way, in case we proceed down this
 path.

 Leaving the new filter to single_term_title() in, as this is the only way
 anyone would ever undo a prefix via a filter.  I'd like others thoughts on
 this though, because the result is certainly inelegant.  Just don't think
 there's a better way to do it and still maintain the same functionality on
 the existing filters.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26667#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list