Skip to content

Commit

Permalink
Deprecated some arguments of crp_get_the_post_thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaydsouza committed Mar 13, 2015
1 parent f2a8253 commit 07ac38e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 4 additions & 5 deletions contextual-related-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Plugin Name: Contextual Related Posts
* Plugin URI: http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/
* Description: Display a set of related posts on your website or in your feed. Increase reader retention and reduce bounce rates
* Version: 2.0.3
* Version: 2.0.4
* Author: Ajay D'Souza
* Author URI: http://ajaydsouza.com
* Text Domain: crp
Expand Down Expand Up @@ -226,7 +226,6 @@ function ald_crp( $args = array() ) {
'thumb_default_show' => $thumb_default_show,
'scan_images' => $scan_images,
'class' => 'crp_thumb',
'filter' => 'crp_postimage',
) );
$output .= '</a>';
}
Expand Down Expand Up @@ -1196,14 +1195,14 @@ function crp_get_the_post_thumbnail( $args = array() ) {
* Use this filter to modify the thumbnail URL that is automatically created
* Before v2.1 this was used for cropping the post image using timthumb
*
* @since 1.8.10
* @since 2.1.0
*
* @param string $postimage URL of the thumbnail image
* @param int $thumb_width Thumbnail width
* @param int $thumb_height Thumbnail height
* @param object $result Post Object
*/
$postimage = apply_filters( 'crp_thumb_url', $postimage, $thumb_width, $thumb_height, $result );
$postimage = apply_filters( 'crp_thumb_url', $postimage, $thumb_width, $thumb_height, $result );

/* Backward compatibility */
$thumb_timthumb = false;
Expand All @@ -1222,7 +1221,7 @@ function crp_get_the_post_thumbnail( $args = array() ) {
* @param int $thumb_timthumb_q Quality of timthumb thumbnail.
* @param object $result Post Object
*/
$postimage = apply_filters( 'crp_postimage', $postimage, $thumb_width, $thumb_height, $thumb_timthumb, $thumb_timthumb_q, $result );
$postimage = apply_filters( 'crp_postimage', $postimage, $thumb_width, $thumb_height, $thumb_timthumb, $thumb_timthumb_q, $result );

if ( is_ssl() ) {
$postimage = preg_replace( '~http://~', 'https://', $postimage );
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Check the Changelog for a full list of changes.
= 2.1.0 =
* New: Separate cache for related posts added to feeds. Prevents conflict with the cache for normal related posts
* New: Timthumb has been deprecated
* Modified: `thumb_timthumb`, `thumb_timthumb_q` and `filter` attributes for the function `crp_get_the_post_thumbnail` have been deprecated. If you're using this function, an entry will be created for the deprecated log
* Modified: Reset default thumbnail URL location to plugin default if the field is blank or only contains `/default.png`
* Fixed: Author link was incorrectly displayed multiple times in the list when Show Author was enabled

Expand Down

0 comments on commit 07ac38e

Please sign in to comment.