Opened 11 years ago
Closed 11 years ago
#33956 closed enhancement (duplicate)
New function: `get_the_slug()`
| Reported by: | sebastian.pisula | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Posts, Post Types | Version: | |
| Severity: | normal | Keywords: | has-patch reporter-feedback |
| Cc: | Focuses: |
Description
Function to display post slug
Attachments (2)
Change History (6)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Thanks for the patch!
Just some notes:
See https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/ and https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/php/
It's worth noting that many people implemented their own
the_slugfunctions over the years so this might break some sites.