#3603 closed enhancement (wontfix)
Prefer get_post_permalink() over get_permalink()
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | |
| Component: | API - Rewrite Rules | Keywords: | |
| Cc: |
Description
There are quite a few places where get_permalink() is called on one of the 3 bbPress custom post types, and some unnecessary PHP processing can be eliminated by simply calling get_post_permalink() instead.
This is because get_permalink() does some post_type checks internally, and in our case then just returns the results of get_post_permalink() anyways.
Since we always know our own post types will always make those calls, we can safely call them directly.
Change History (2)
Note: See
TracTickets for help on using
tickets.
After a bit more review & research, I'm opting to close this as wontfix for the following reasons:
get_permalink()may cause unintended breakage.get_permalink()to figure things out.