Skip to content
Browse files

remove root_relative_urls that is no longer needed

  • Loading branch information...
1 parent 7420678 commit ffac82472fd299f1e7b63d6acc1fc00e8150852e @matt-h matt-h committed Feb 7, 2014
Showing with 0 additions and 13 deletions.
  1. +0 −13 includes/base-functions.php
View
13 includes/base-functions.php
@@ -270,19 +270,6 @@ function scaffolding_mcekit_editor_style($url) {
}
add_filter('mce_css', 'scaffolding_mcekit_editor_style');
-// Relative root the urls for the media uploader
-function root_relative_urls($html) {
- if(defined('WP_SITEURL')) {
- $url = WP_SITEURL;
- }
- else {
- $url = 'http://' . $_SERVER['HTTP_HOST'];
- }
- return str_ireplace($url, '', $html);
-}
-add_filter('image_send_to_editor', 'root_relative_urls',100);
-add_filter('media_send_to_editor', 'root_relative_urls',100);
-
//Filter out hard-coded width, height attributes on all images in WordPress. - https://gist.github.com/4557917 - for more information
function scaffolding_remove_img_dimensions($html) {
// Loop through all <img> tags

0 comments on commit ffac824

Please sign in to comment.
Something went wrong with that request. Please try again.