[wp-trac] [WordPress Trac] #48374: Username in Source Code
WordPress Trac
noreply at wordpress.org
Sun Oct 20 12:01:08 UTC 2019
#48374: Username in Source Code
--------------------------+------------------------------
Reporter: briannie | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Security | Version:
Severity: major | Resolution:
Keywords: | Focuses: privacy
--------------------------+------------------------------
Comment (by sebastienserre):
OK, I understood and I think your request in plugin territory
These URLs came from WordPress when it was only a Blog platform. Nowaday
we make lots of kind of website and this URL allways exists.
If you want to disable, I suggest to redirect visitosrs with this kinfd of
code:
{{{
function author_page_redirect() {
if ( is_author() ) {
wp_redirect( home_url() );
}
}
add_action( 'template_redirect', 'author_page_redirect' );
}}}
https://wordpress.stackexchange.com/questions/182236/completely-remove-
the-author-url
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48374#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list