[wp-trac] [WordPress Trac] #16784: Introduce post_type_archive_description()
WordPress Trac
noreply at wordpress.org
Sat Feb 8 21:08:17 UTC 2014
#16784: Introduce post_type_archive_description()
-------------------------------+------------------------------
Reporter: thomask | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 3.1
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
-------------------------------+------------------------------
Comment (by Jayjdk):
I have attached a patch.
The function is quite similar to `post_type_archive_title()` but I removed
the `$prefix` parameter.
This function echo as default similar to `post_type_archive_title()` but
the other description functions returns as default. I'm not sure what's
preferred here.
I'm not not sure what file this function should be in.
`post_type_archive_title()` is in `general-template.php` but
`term_description()` and the others are in `category-template.php`. I've
included the function right after `post_type_archive_title()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/16784#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list