Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#24458 closed defect (bug) (fixed)

Remove attachment_url_to_postid()

Reported by: aaroncampbell Owned by:
Milestone: 3.6 Priority: normal
Severity: normal Version:
Component: Media Keywords: needs-codex has-patch
Focuses: Cc:

Description (last modified by aaroncampbell)

For A/V shortcodes, include the attachment ID instead of just the URL, making attachment_url_to_postid() unnecessary.

Transition those IDs on import

Remove attachment_url_to_postid()

As per http://make.wordpress.org/core/2013/05/29/post-formats-ui-is-exiting-core-will-live-as-a-plugin/

Attachments (5)

24458.diff (1.3 KB) - added by markjaquith 8 years ago.
24458.2.diff (527.7 KB) - added by markjaquith 8 years ago.
24458.3.diff (3.2 KB) - added by markjaquith 8 years ago.
without all the extra stuff
24458.4.diff (1.1 KB) - added by kovshenin 8 years ago.
24458.5.diff (2.7 KB) - added by wonderboymusic 8 years ago.

Download all attachments as: .zip

Change History (14)

#1 @DrewAPicture
8 years ago

  • Keywords needs-codex added

For removal from the Codex list.

#3 @aaroncampbell
8 years ago

  • Description modified (diff)

8 years ago

#4 @markjaquith
8 years ago

Adds shortcode support for id=attachment_id. Seems to work. Overrides src. Now to have the JS set that when embedding.

8 years ago

#5 @markjaquith
8 years ago

Uses id when creating audio/video embeds now.

8 years ago

without all the extra stuff

8 years ago

#6 @kovshenin
8 years ago

In 24458.4.diff: stop using attachment_url_to_postid in img_html_to_post_id.

#7 @wonderboymusic
8 years ago

  • Keywords has-patch added; needs-patch removed

Removes func and includes kovshenin's changes in 24458.5.diff

#8 @nacin
8 years ago

In 24548:

Remove attachment_url_to_postid(). props kovshenin, wonderboymusic. see #24458.

#9 @nacin
8 years ago

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

See #24791 for importin'.

Note: See TracTickets for help on using tickets.