WPIntell

Source evidence

This plugin conflicts with Amazon S3 and Cloudfront plugin

Root Relative URLs · support · 2013-11-13T03:47:00+00:00

complaintsentiment
highseverity
0.85relevance
0replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 35 rows with source links

14.3% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

30 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
nathan unresolved
Inserting images from the media library that have been uploaded to Amazon S3 and then removed from the local server results in broken image links, I fixed this issue by patching the file sb_root_relative_urls.php. Changed This: static function root_relative_url($url, $html) { //If urls already start from root, just return it if ($url[0] == "/") return $html; $p = parse_url($url); $root = $p['scheme'] . "://" . $p['host']; $html = str_ireplace($root, '', $html); return $html; } To This: static function root_relative_url($url, $html) { //If urls already start from root, just return it if ($url[0] == "/") return $html; // Don't strip URL data for images stored on external cloud servers such as Amazon S3... if ( self::dynamic_absolute_url($url) ) { $root = ''; } else{ $p = parse_url($url); $root = $p['scheme'] . "://" . $p['host']; } $html = str_ireplace($root, '', $html); return $html; } Otherwise this is the single best plugin for WP… Cheers. http://wordpress.org/plugins/root-relative-urls/

Comments

0 shown

No comments were stored for this source.