WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 4 months ago

#26284 assigned enhancement

Stop get_page_uri requiring a page ID

Reported by: pollett Owned by: chriscct7
Milestone: Future Release 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 2 years ago.

Download all attachments as: .zip

Change History (5)

@pollett
2 years ago

#1 @SergeyBiryukov
2 years ago

  • Version changed from trunk to 3.7

#2 @nacin
2 years ago

  • Component changed from General to Post Types

#3 @ericlewis
2 years ago

  • Focuses template added

Totally.

#4 @chriscct7
4 months ago

  • Milestone changed from Awaiting Review to Future Release
  • Owner set to chriscct7
  • Status changed from new to assigned
Note: See TracTickets for help on using tickets.