WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#34651 closed enhancement (fixed)

Instagram URLs with www will not embed

Reported by: kevmarsden Owned by: pento
Milestone: 4.4 Priority: normal
Severity: normal Version: 4.3.1
Component: Embeds Keywords: has-patch
Focuses: Cc:
PR Number:

Description

Instagram URLs with the 'www' subdomain will not create an embed. Once the 'www' is removed from an Instagram URL, the embed is created.

It would be nice to support URLs that contain 'www' because when viewing Instagram from a web browser (while logged in), Instagram uses the 'www' subdomain throughout the site.

Example image on Instagram:

Example embed attempt in WordPress:

Attachments (3)

img1.png (482.9 KB) - added by kevmarsden 4 years ago.
img2.png (439.9 KB) - added by kevmarsden 4 years ago.
34651.diff (1.3 KB) - added by skithund 4 years ago.

Download all attachments as: .zip

Change History (9)

@kevmarsden
4 years ago

@kevmarsden
4 years ago

@skithund
4 years ago

#1 @skithund
4 years ago

  • Keywords has-patch added

Attached patch adds (www\.)? to Instagram regex

#2 @MikeHansenMe
4 years ago

  • Milestone changed from Awaiting Review to Future Release

#3 @skithund
4 years ago

Apparently Instagram is now forwarding (301 moved permanently) to www.instagram.com when opening instagram.com URLs. IMO this fix should land on 4.4.

#4 @pento
4 years ago

  • Milestone changed from Future Release to 4.4
  • Owner set to pento
  • Status changed from new to assigned

#5 @pento
4 years ago

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

In 35634:

Embeds: Add support for the www subdomain to Instagram embed URLs.

Props skithund.

Fixes #34651.

This ticket was mentioned in Slack in #core by swissspidy. View the logs.


3 years ago

Note: See TracTickets for help on using tickets.