[wp-trac] [WordPress Trac] #21995: (get/the)_archive_title and (get/the)_archive_description functions

WordPress Trac noreply at wordpress.org
Sun Mar 3 21:36:39 UTC 2013


#21995: (get/the)_archive_title and (get/the)_archive_description functions
------------------------------------+------------------
 Reporter:  thomask                 |       Owner:
     Type:  feature request         |      Status:  new
 Priority:  normal                  |   Milestone:  3.6
Component:  Template                |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------

Comment (by mdgl):

 Replying to [comment:16 thee17]:
 > There is something wrong, I am returning
 > {{{
 > Category Archives: <span>General</0>
 > }}}
 >  with the_archive_title() perhaps it would be nice to have the option to
 disable the tags or do something similar.

 There is just a small typo in the latest patch:

 {{{
 $after = sprintf( '</%x>', $container );
 }}}

 which should of course use the `%s` type specifier rather than `%x`.  In
 fact, I suspect that if `$container` is empty the code should leave both
 `$before` and `$after` completely empty as well.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21995#comment:17>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list