Ref #525 - Remove all hooks
This commit is contained in:
@@ -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>`
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
// head.php
|
||||
function roots_head() { do_action('roots_head'); }
|
||||
|
||||
// footer.php
|
||||
function roots_footer() { do_action('roots_footer'); }
|
||||
@@ -3,5 +3,4 @@
|
||||
<p>© <?php echo date('Y'); ?> <?php bloginfo('name'); ?></p>
|
||||
</footer>
|
||||
|
||||
<?php wp_footer(); ?>
|
||||
<?php roots_footer(); ?>
|
||||
<?php wp_footer(); ?>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user