Changes between Initial Version and Version 1 of Ticket #12726, comment 11
- Timestamp:
- 10/13/2015 12:04:05 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12726, comment 11
initial v1 5 5 You make some great points, and 4 years since I posted this ticket I would agree. 6 6 7 Ex pect for two (2) things; one major and the other nice-to-have. Ironically I ran across the former issue within the past month but I'll start with explaining the latter:7 Except for two (2) things; one major and the other nice-to-have. Ironically I ran across the former issue within the past month but I'll start with explaining the latter: 8 8 9 9 1. `get_page_by_path()` has semantics for `post_type=page` so it is harder to discover when people are looking for a `get_post_*()` function, and confusing for people who do not yet understand that it can be used to access other post types. Offering a `get_post_by()` would thus clean up the API in that respect and ''possibly'' allow for deprecating `get_page_by_*()` and maybe some other functions.