[wp-trac] [WordPress Trac] #38487: the_archive_description() doesn't output the custom post type description when used in a post type archive template

WordPress Trac noreply at wordpress.org
Sat Jul 1 14:20:56 UTC 2017


#38487: the_archive_description() doesn't output the custom post type description
when used in a post type archive template
-------------------------------+---------------------------
 Reporter:  henry.wright       |       Owner:  DrewAPicture
     Type:  enhancement        |      Status:  closed
 Priority:  normal             |   Milestone:  4.9
Component:  Posts, Post Types  |     Version:  4.6.1
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch          |     Focuses:  template
-------------------------------+---------------------------

Comment (by DrewAPicture):

 Replying to [comment:11 henry.wright]:
 > Hey @DrewAPicture
 >
 > In the commit, if {{{post_type_obj->description}}} isn't set,
 {{{$description}}} doesn't get set. Does that matter?

 It does matter, yes :-) I removed the initialization thinking that I'd
 left the fallback from your original patch in there, but I didn't. Good
 catch.

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


More information about the wp-trac mailing list