WordPress.org

Make WordPress Core

Opened 19 months ago

Last modified 16 months 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 19 months ago.

Download all attachments as: .zip

Change History (4)

@pollett19 months ago

comment:1 @SergeyBiryukov19 months ago

  • Version changed from trunk to 3.7

comment:2 @nacin18 months ago

  • Component changed from General to Post Types

comment:3 @ericlewis16 months ago

  • Focuses template added

Totally.

Note: See TracTickets for help on using tickets.