WordPress.org

Make WordPress Core

Opened 5 months ago

Last modified 7 weeks ago

#26284 new enhancement

Stop get_page_uri requiring a page ID

Reported by: pollett Owned by:
Milestone: Awaiting Review Priority: normal
Severity: trivial Version: 3.7
Component: Posts, Post Types Keywords: has-patch
Focuses: template Cc:

Description

Currently get_page_uri has to be passed a page id which is passed to get_post.

get_post is happy to work on the current page without requiring an id to be specified, removing this requirement.

Attachments (1)

getpageuri.diff (558 bytes) - added by pollett 5 months ago.

Download all attachments as: .zip

Change History (4)

pollett5 months ago

comment:1 SergeyBiryukov5 months ago

  • Version changed from trunk to 3.7

comment:2 nacin3 months ago

  • Component changed from General to Post Types

comment:3 ericlewis7 weeks ago

  • Focuses template added

Totally.

Note: See TracTickets for help on using tickets.