Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#23927 closed task (blessed) (fixed)

Use standard root for post format theme API functions

Reported by: markjaquith Owned by: markjaquith
Milestone: 3.6 Priority: high
Severity: normal Version: 3.6
Component: Template Keywords:
Focuses: Cc:


The post format theme API functions are too generic. We're going to have collisions, and they can look ambiguous. For example: the_url() vs the_permalink() the_image() vs our post thumbnail functions.

Suggested in IRC: use post_format as the root phrase. e.g. the_post_format_image()

Attachments (1)

23927.diff (7.6 KB) - added by markjaquith 3 years ago.

Download all attachments as: .zip

Change History (6)

3 years ago

#1 @markjaquith
3 years ago

Got it started. What other ones?

#2 @markjaquith
3 years ago

  • Owner set to markjaquith
  • Resolution set to fixed
  • Status changed from new to closed

In 23899:

Standardize the post format theme API functions with the_post_format_THING() and get_the_post_format_THING().

fixes #23927

#3 @batmoo
3 years ago

This addresses the issue noted here: #23572

Version 0, edited 3 years ago by batmoo (next)

#4 @ocean90
3 years ago

Related: #23942

#5 @SergeyBiryukov
3 years ago

In 23911:

Use correct function name. props ocean90. fixes #23942. see #23927.

Note: See TracTickets for help on using tickets.