WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#15192 closed enhancement (fixed)

Introduce set_post_thumbnail()

Reported by: scribu Owned by: sorich87
Milestone: 3.1 Priority: low
Severity: normal Version:
Component: Post Thumbnails Keywords: has-patch
Focuses: Cc:

Description

We don't have a set_post_thumbnail() function yet.

It's currently done using add_post_meta() directly.

Attachments (1)

15192.diff (2.9 KB) - added by sorich87 3 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 nacin3 years ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 3.1

Punt this in a week if it isn't closed.

sorich873 years ago

comment:2 sorich873 years ago

  • Keywords has-patch added; needs-patch removed
  • Owner set to sorich87
  • Status changed from new to accepted

comment:3 nacin3 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

(In [16388]) set_post_thumbnail(). fixes #15192.

comment:4 nacin3 years ago

(In [16389]) Sanity cast. see #15192.

Note: See TracTickets for help on using tickets.