diff --git a/doc/usage.md b/doc/usage.md
index a952236..a41d0b6 100755
--- a/doc/usage.md
+++ b/doc/usage.md
@@ -5,7 +5,7 @@ table of contents](TOC.md)
The HTML, CSS and JavaScript in Roots comes from a combination of HTML5 Boilerplate and Twitter Bootstrap.
-* [HTML5 Boilerplate documentation](https://github.com/h5bp/html5-boilerplate/blob/master/doc/README.md)
+* [HTML5 Boilerplate documentation](https://github.com/h5bp/html5-boilerplate/blob/master/README.md)
* [Twitter Bootstrap documentation](http://twitter.github.com/bootstrap/getting-started.html)
## Basic structure
diff --git a/functions.php b/functions.php
index 62e8841..fef4745 100644
--- a/functions.php
+++ b/functions.php
@@ -1,10 +1,7 @@
\n";
}
-
add_action('init', 'roots_head_cleanup');
/**
@@ -80,7 +78,6 @@ function roots_language_attributes() {
return $output;
}
-
add_filter('language_attributes', 'roots_language_attributes');
/**
@@ -92,7 +89,6 @@ function roots_clean_style_tag($input) {
$media = $matches[3][0] === 'print' ? ' media="print"' : '';
return '' . "\n";
}
-
add_filter('style_loader_tag', 'roots_clean_style_tag');
/**
@@ -114,7 +110,6 @@ function roots_body_class($classes) {
return $classes;
}
-
add_filter('body_class', 'roots_body_class');
/**
@@ -129,6 +124,11 @@ add_filter('body_class', 'roots_body_class');
* @author Scott Walkinshaw
*/
function roots_root_relative_url($input) {
+ // fix for site_url != home_url()
+ if(!is_admin() && site_url() != home_url()) {
+ $input = str_replace(site_url(), "", $input);
+ }
+
$output = preg_replace_callback(
'!(https?://[^/|"]+)([^"]+)?!',
create_function(
@@ -142,22 +142,12 @@ function roots_root_relative_url($input) {
),
$input
);
-
- return $output;
-}
-
-/**
- * Terrible workaround to remove the duplicate subfolder in the src of
diff --git a/lib/utils.php b/lib/utils.php
index cf688de..538ca41 100644
--- a/lib/utils.php
+++ b/lib/utils.php
@@ -1,7 +1,6 @@
__('Primary Sidebar', 'roots'),
'id' => 'sidebar-primary',
@@ -20,12 +22,14 @@ function roots_widgets_init() {
'after_title' => '',
));
- // Register widgets
+ // Widgets
register_widget('Roots_Vcard_Widget');
}
add_action('widgets_init', 'roots_widgets_init');
-// Example vCard widget
+/**
+ * Example vCard widget
+ */
class Roots_Vcard_Widget extends WP_Widget {
private $fields = array(
'title' => 'Title (optional)',