[wp-trac] [WordPress Trac] #40040: Run wpautop on author bio
WordPress Trac
noreply at wordpress.org
Sat Apr 29 14:35:22 UTC 2017
#40040: Run wpautop on author bio
------------------------------------+------------------------------
Reporter: henry.wright | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.7.2
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses:
------------------------------------+------------------------------
Changes (by henry.wright):
* keywords: has-patch => has-patch dev-feedback
* focuses: template =>
* version: 4.7 => 4.7.2
Comment:
Using {{{the_archive_description()}}} in archive.php will output:
- a term description if the current page is example.com/category/slug (or
example.com/tag/slug for example)
- an author's bio if the current page is example.com/author/username
Support for author bio was added in 4.7.0.
The reason for this ticket is the output of
{{{the_archive_description()}}} is now inconsistent.
The term description is run through 4 functions:
- `wptexturize`
- `convert_chars`
- `wpautop`
- `shortcode_unautop`
However, the author bio isn't run through these.
This results in the front end source code looking like this:
In example.com/category/slug:
`<p>This is a term description & convert_chars and wpautop have run
on it</p>`
In example.com/author/username:
`This is an author bio & convert_chars and wpautop have not run on it`
40040.diff will make the category, tag and author archive output of
{{{the_author_description()}}} consistent.
Running {{{the_author_description()}}} through one of the 4 functions
manually didn't change the output so if end-users are doing this nothing
will change for them after the introduction of this patch.
- `wptexturize( the_author_description() )`
- `convert_chars( the_author_description() )`
- `wpautop( the_author_description() )`
- `shortcode_unautop( the_author_description() )`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40040#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list