Add is() function that checks for single object queries.
|Reported by:||ryan||Owned by:||ryan|
|Severity:||normal||Keywords:||query bg|has-patch bg|needs-testing bg|2nd-opinion|
Perhaps call it is_singular().
|is_page()||is_attachemnt() ) quite often. This would clean those checks up and make it easier to add new single object queries.|
I wish we had called is_single() is_post() instead. Oh well.
Change History (10)
Note: See TracTickets for help on using tickets.