Plugin / ACF Media Credit

Don Gaines

Changelog

Changelog

2.3.7

  • Fixed a PHP scoping issue that resulted in blank page content when a [credit] was applied to an image without an HTML class attribute.

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.

2.3.3

  • Add some filters for manipulating markup in html5 ways, specifically useful for Facebook Instant Articles/Google AMP

2.3.2

  • Make sure it doesn’t do ACF content inside regular content twice

2.3.1

  • Make sure it doesn’t do images w/ captions twice

2.3.0

  • Add the ‘acf_the_content’ filter to the plugin so that images inside ACF fields like a Repeater don’t have to apply ‘the_content’ filter

2.2.2

  • Got rid of ‘undefined variable’ PHP notice

2.2.1

  • Got rid of an offset warning, updated coded to VIP standards with tabbing, etc.

2.2.0

  • Added some filters for developers use!

2.1.0

  • My apologies, left out the ‘media-credit’ class on a the wrapping div. Also wrapped the media credit span inside a p tag if it matches for that.

2.0.1

  • Change placeholder text in ACF Field for iStock to avoid confusion

2.0.0

  • Reworked the way classes and pertanent info are gathered from the img tag. Should get rid of any problems with inconsistencies in where the align class or other items fall within the tag.

1.5

  • Added conditionals to check if alignment class is at the end of the image class list. When using the paragraph aligmnent tool for images it adds the class at the end instead of the beginning which was causing some issues.

1.3.4

  • Set a max-width:100%; the wrapping media-credit div. Fixes an issue with images not being responsive after the 1.3.3 update where I added a width to the div to fix float issues in IE.

1.3.3

  • In IE a floated div (like the wrapping div this puts around images w/ credits) doesn’t get floated properly unless there’s a width. This release adds a width via an inline style to the div that wraps the image & credits. The width is taken from the image itself. This should fix any issues in IE where the credit doesn’t stay underneath the image when an image is aligned right or left.

1.3.2

  • Added more conditions to the regex. If a

<

p> tag precedes the image it will now be cool if the paragraph tag has a class or style applied to it.

1.3.1

  • Get rid of PHP Warning for missing var (should also clear warning for empty regex)

1.3.0

  • Tested compatibility for WP 4.2
  • Changed the output of credits ever so slightly so that if an empty credit field exists it won’t be output with the pipe.
  • It appears with the update of ACF there’s a bug with the Media Library & Repeater Field again. Hence the above update to the output. I’m logging a bug ticket w/ ACF so they can be aware. Right now what I’m seeing is if you add a second credit, then decide to delete the credit it won’t go away. You can erase the credit data but still the Repeater Field stays.

1.2.1

  • Add a return function for the post thumbnail media credit

1.2

  • Apologies for the slurry of updates recently, the plugin was launched on a large site and some minor issues arose.
  • Now supports classes on images: https://wordpress.org/support/topic/credit-disappears-if-class-added-to-image?replies=3#post-6726612 // thanks for the feedback!
  • Fixes an issue where if for some unknown reason (seriously, why would this happen? but it did) you use the same image on the page twice the credit was applied twice to each image. It won’t do that now 😀
  • Also made the method for getting the ID a little more air-tight so that any numbers added via class wouldn’t accidentally be picked up.

1.1.3

  • SVN appeared to be creating/adding a misnamed minified css file, trying to get rid of that

1.1.2

  • Updates admin css, had a conflict it appeared.

1.1.1

  • Uses ‘function_exists’ to make sure there are no conflicts
  • Updates admin css so that the credit entries aren’t squished

1.0.2

  • Nothing new, just getting the 1.0.1 update correct

1.0.1

  • Open any linked credits in a new window.

1.0

  • Requires ACF Pro or ACF Free w/ Repeater Premium Add-On

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.