Skip to content

Commit

Permalink
make sure code is up to date w/ WP repo version
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldG committed Aug 8, 2017
1 parent 1414ee9 commit c3ec974
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions media-credit.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
Plugin Name: Advanced Custom Fields Media Credit
Description: This plugin adds Credit & Credit Link fields to the media uploading and editing tool and inserts this credit when the images appear on your blog.
Version: 2.3.4
Version: 2.3.6
Author: Don Gaines
Author URI: http://www.dongaines.com
*/
Expand Down Expand Up @@ -111,7 +111,7 @@ function the_media_credit_html( $attachment_id ) {
endwhile;
$image_credit .= '</span>';
//Filter to change the output of <span><span>credit</span> | <span>credit</span></span>
$image_credit = apply_filters( 'acf_media_credit_base_output', $image_credit );
$image_credit = apply_filters( 'acf_media_credit_base_output_html_credit', $image_credit );
endif;
return $image_credit;
}
Expand Down Expand Up @@ -171,7 +171,7 @@ function the_plain_media_credit( $attachment_id ) {

$image_credit .= '</span>';
//Filter to change the output of <span><span>credit</span> | <span>credit</span></span>
$image_credit = apply_filters( 'acf_media_credit_base_output', $image_credit );
$image_credit = apply_filters( 'acf_media_credit_base_output_plain_credit', $image_credit );

endif;

Expand Down
10 changes: 8 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/us/cgi-bin/webscr?cmd=_flow&SESSION=LNaVZ85r
Tags: custom, field, custom field, advanced, repeater, media, image, images, credit, byline, author
Requires at least: 4.0
Tested up to: 4.7.3
Stable tag: 2.3.4
Stable tag: 2.3.6
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -39,7 +39,7 @@ Yes! There's a filter, `acf_media_credit_base_output` you can use for this purpo
Most likely, I'm a pretty nice dude. If you have a question feel free to log it in the support section or contact me through my site at http://dongaines.com

== Upgrade Notice ==
=2.3.4=
=2.3.6=
Current

== Screenshots ==
Expand All @@ -49,6 +49,12 @@ Current


== Changelog ==
= 2.3.6 =
* Changing filter names so we are able to separate out how markup changes might be applied.

= 2.3.5 =
* Merging PR from Github, fixes php notice about undefined var $image_credit, indentation inconsistencies, and removes unused $total var

= 2.3.4 =
* Oops! Missed a closing tag on that wrapper_tag filter, bit of a hot fix.

Expand Down

0 comments on commit c3ec974

Please sign in to comment.