Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #49190, comment 4


Ignore:
Timestamp:
01/17/2020 01:21:24 AM (5 years ago)
Author:
kjellr
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #49190, comment 4

    v1 v2  
    11> WordPress core runs KSES on the post's title as it's saved so the content in the database is considered safe. Therefore there is no need to run wp_kses_post() on title. It's the same process that makes escaping the_content() unnecessary.
    22
    3 That was my initial assumption, before seeing the linked suggestion in `_s` repository. There's some conflicting information on the code reference page that should be clarified:
     3That was my initial assumption, before seeing the linked suggestion in the `_s` repository. There's some conflicting information on the code reference page that should be clarified:
    44
    55https://developer.wordpress.org/reference/functions/get_the_title/#comment-2150