Ref #525 - Remove all hooks

This commit is contained in:
Ben Word
2012-08-20 19:17:28 -05:00
parent 5c664af0cb
commit 9801e69b3b
7 changed files with 5 additions and 15 deletions

View File

@@ -3,7 +3,7 @@
* Implement scribu's [Theme Wrapper](http://scribu.net/wordpress/theme-wrappers.html) (see `base.php`)
* Move templates, `comments.php`, and `searchform.php` to `templates/` folder
* Rename `loop-` files to `content-`
* Remove all hooks except `roots_head` and `roots_footer`
* Remove all hooks
* Use `templates/page-header.php` for page titles
* Use `head.php` for everything in `<head>`

View File

@@ -5,14 +5,13 @@
if (!defined('__DIR__')) { define('__DIR__', dirname(__FILE__)); }
require_once locate_template('/inc/util.php'); // Utility functions
require_once locate_template('/inc/utils.php'); // Utility functions
require_once locate_template('/inc/config.php'); // Configuration and constants
require_once locate_template('/inc/activation.php'); // Theme activation
require_once locate_template('/inc/template-tags.php'); // Template tags
require_once locate_template('/inc/cleanup.php'); // Cleanup
require_once locate_template('/inc/scripts.php'); // Scripts and stylesheets
require_once locate_template('/inc/htaccess.php'); // Rewrites for assets, H5BP .htaccess
require_once locate_template('/inc/hooks.php'); // Hooks
require_once locate_template('/inc/actions.php'); // Actions
require_once locate_template('/inc/widgets.php'); // Sidebars and widgets
require_once locate_template('/inc/custom.php'); // Custom functions

View File

@@ -9,7 +9,7 @@ function roots_feed_link() {
}
}
add_action('roots_head', 'roots_feed_link');
add_action('wp_head', 'roots_feed_link', -2);
/**
* Add the asynchronous Google Analytics snippet from HTML5 Boilerplate
@@ -28,4 +28,4 @@ function roots_google_analytics() {
}
}
add_action('roots_footer', 'roots_google_analytics');
add_action('wp_footer', 'roots_google_analytics');

View File

@@ -1,7 +0,0 @@
<?php
// head.php
function roots_head() { do_action('roots_head'); }
// footer.php
function roots_footer() { do_action('roots_footer'); }

View File

@@ -4,4 +4,3 @@
</footer>
<?php wp_footer(); ?>
<?php roots_footer(); ?>

View File

@@ -14,5 +14,4 @@
<script>window.jQuery || document.write('<script src="<?php echo get_template_directory_uri(); ?>/js/vendor/jquery-1.8.0.min.js"><\/script>')</script>
<?php wp_head(); ?>
<?php roots_head(); ?>
</head>