WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#13274 closed feature request (invalid)

Gallery Short Code Change media.php

Reported by: waltertschwe Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

File requested to be changed: /wp-includes/media.php

This is a customized change needed for Time Magazine's blogs. proc gallery_shortcode. We are requesting this change to accommodate our iPhone application. This would only effect our time feeding through plugin. This adds a link under each gallery asset name because the app can't pick up the image or the link from the short code.

NEW CODE:
added for mobile app

$feed = $_GETfeed?;
if ($feed == "feedingtrough") {

$postUrl = wp_get_attachment_url($id, 'full');
$output .= "<div class=\"mobile\"><a href=\"{$postUrl}\">$attachment->post_title</a></div>";

}

Change History (1)

comment:1 @nacin5 years ago

  • Milestone Unassigned deleted
  • Resolution set to invalid
  • Status changed from new to closed

We don't make targeted core hacks to benefit plugins like this. There's also probably a much better way to do this, probably without a core hack.

Perhaps you meant this to be sent through wp.com VIP support?

Note: See TracTickets for help on using tickets.