WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #12726, comment 11


Ignore:
Timestamp:
10/13/2015 12:04:05 AM (5 years ago)
Author:
MikeSchinkel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12726, comment 11

    initial v1  
    55You make some great points, and 4 years since I posted this ticket I would agree. 
    66
    7 Expect 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:
     7Except 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:
    88
    991. `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.