From a7952a89486f09a3fcad8f9689f494e0a6eb5b06 Mon Sep 17 00:00:00 2001 From: Andra Date: Mon, 8 Jun 2015 11:59:15 +0200 Subject: [PATCH] Added '$post' argument to jf_read_more_excerpt() The original implimentation was causing `Undefined variable` notifications. Also, in this form the function definition is a bit more explicit about what it is using to generate the excerpt. --- functions/jf-content.php | 4 ++-- templates/content/archive.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/functions/jf-content.php b/functions/jf-content.php index d916886..8a8b6fc 100644 --- a/functions/jf-content.php +++ b/functions/jf-content.php @@ -2,7 +2,7 @@ // Return the excerpt of the post, unless the read more element is used // Output of both versions will be the same: one

with content and one

with the more link -function jf_read_more_excerpt( ) { +function jf_read_more_excerpt( $post ) { $content = get_the_content(); if( strpos( $content, '#more-' ) ) { @@ -32,4 +32,4 @@ function jf_add_image_size( $name, $width = 0, $height = 0, $crop = false ) { add_option( "{$name}_size_h", $height, '', 'yes' ); add_option( "{$name}_crop", ((int) $crop), '', 'yes' ); } -} \ No newline at end of file +} diff --git a/templates/content/archive.php b/templates/content/archive.php index cbdaa4b..fafb6a4 100644 --- a/templates/content/archive.php +++ b/templates/content/archive.php @@ -1,9 +1,9 @@ -

> - +