[wp-trac] [WordPress Trac] #53943: Consider removing user's info in body class for page author

WordPress Trac noreply at wordpress.org
Tue Aug 17 13:40:13 UTC 2021


#53943: Consider removing user's info in body class for page author
-------------------------+-----------------------------
 Reporter:  jmlapam      |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  5.8
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 By default, the `body_class` filter includes user login info on page
 author. It gives something like that:

 ```<body class="archive author author-sarah author-123456">```

 While I certainly don't believe in security through obscurity, I think it
 should not be the default behavior. Even if you want to customize the
 template for a specific author, you'd better use a specific file in the
 theme.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53943>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list