From 4341f49977d0440c12e86170997b6c4af5c1d141 Mon Sep 17 00:00:00 2001 From: Braad Date: Tue, 23 Jun 2015 16:54:05 -0700 Subject: [PATCH 1/2] Move BFAL require to allow plugin's files the change to load first --- functions.php | 3 --- includes/functions/theme-functions.php | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index 1896e6d..0d8669a 100644 --- a/functions.php +++ b/functions.php @@ -30,9 +30,6 @@ require_once dirname( __FILE__ ) . '/includes/widget-areas/widget-areas.php'; // Plugin activation class. require_once dirname( __FILE__ ) . '/lib/class-tgm-plugin-activation.php'; -// Better Font Awesome Library. -require_once dirname( __FILE__ ) . '/lib/better-font-awesome-library/better-font-awesome-library.php'; - // Dev utility functions. require_once dirname( __FILE__ ) . '/includes/utilities/utilities.php'; diff --git a/includes/functions/theme-functions.php b/includes/functions/theme-functions.php index 79af02f..25820c7 100755 --- a/includes/functions/theme-functions.php +++ b/includes/functions/theme-functions.php @@ -55,6 +55,9 @@ add_action( 'init', 'trestle_load_bfa' ); */ function trestle_load_bfa() { + // Better Font Awesome Library + require_once get_stylesheet_directory() . '/lib/better-font-awesome-library/better-font-awesome-library.php'; + // Set the library initialization args. $args = array( 'version' => 'latest', From e437b1dd689ef919300abb227bd2e3001736224d Mon Sep 17 00:00:00 2001 From: Braad Date: Tue, 23 Jun 2015 16:56:54 -0700 Subject: [PATCH 2/2] Use trailingslashit() --- includes/functions/theme-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/functions/theme-functions.php b/includes/functions/theme-functions.php index 25820c7..0a5bc82 100755 --- a/includes/functions/theme-functions.php +++ b/includes/functions/theme-functions.php @@ -56,7 +56,7 @@ add_action( 'init', 'trestle_load_bfa' ); function trestle_load_bfa() { // Better Font Awesome Library - require_once get_stylesheet_directory() . '/lib/better-font-awesome-library/better-font-awesome-library.php'; + require_once trailingslashit( get_stylesheet_directory() ) . 'lib/better-font-awesome-library/better-font-awesome-library.php'; // Set the library initialization args. $args = array(