From 5e5718dc2266389540c1ec1256431de6d12bee65 Mon Sep 17 00:00:00 2001 From: Ulrich Pogson Date: Tue, 7 Mar 2017 17:23:07 +0100 Subject: [PATCH] Replace deprecated TEMPLATEPATH with get_stylesheet_directory() --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 6188e22..9d3ac8c 100644 --- a/README.md +++ b/README.md @@ -33,11 +33,11 @@ $ composer install You'll also need to add the following to your functions.php file: ```php -require_once TEMPLATEPATH . '/image-processing-queue/vendor/a5hleyrich/wp-background-processing/classes/wp-async-request.php'; -require_once TEMPLATEPATH . '/image-processing-queue/vendor/a5hleyrich/wp-background-processing/classes/wp-background-process.php'; -require_once TEMPLATEPATH . '/image-processing-queue/includes/class-ipq-process.php'; -require_once TEMPLATEPATH . '/image-processing-queue/includes/class-image-processing-queue.php'; -require_once TEMPLATEPATH . '/image-processing-queue/includes/ipq-template-functions.php'; +require_once get_stylesheet_directory() . '/image-processing-queue/vendor/a5hleyrich/wp-background-processing/classes/wp-async-request.php'; +require_once get_stylesheet_directory() . '/image-processing-queue/vendor/a5hleyrich/wp-background-processing/classes/wp-background-process.php'; +require_once get_stylesheet_directory() . '/image-processing-queue/includes/class-ipq-process.php'; +require_once get_stylesheet_directory() . '/image-processing-queue/includes/class-image-processing-queue.php'; +require_once get_stylesheet_directory() . '/image-processing-queue/includes/ipq-template-functions.php'; Image_Processing_Queue::instance(); @@ -61,4 +61,4 @@ echo ipq_get_theme_image( $post_id, array( ## License -[GPLv2+](http://www.gnu.org/licenses/gpl-2.0.html) \ No newline at end of file +[GPLv2+](http://www.gnu.org/licenses/gpl-2.0.html)