- Bugfix: Author queries now use capabilities instead of the deprecated
'who' => 'authors'
. - Bugfix:
run_wptexturize
filter now can be used even after the plugin is initialized. - Change: WordPress minimum version increased to 5.9.0.
- Change: PHP minimum version increased to 7.4.0.
- Bugfix: Don't eat content between multiple shortcodes on save and switch between visual and HTML mode in the classic editor.
- Feature: A shorter label for credits displayed at the end of a post can be
enabled via the new filter hook
media_credit_at_end_use_short_label
(Images:
instead ofImages courtesy of
). - Feature: The automatic linking of user credits to the WordPress author page
can be disabled with the new filter hook
media_credit_disable_author_urls
. - Feature: Media Credit is now fully compatible with PHP 8.0.
- Bugfix: The credit overlay cannot be selected any more by accident in the classic editor.
- Bugfix: Several visual glitches in classic editor have been fixed and parsing has been made more robust.
- Bugfix: Credit width is set properly for custom image sizes when editing image properties in the classic editor.
- Bugfix: Organization and separator are set correctly when adding a user credit via the image properties dialogue in the classic editor.
- Bugfix: Autocomplete works realiably again in Media Library.
- Bugfix: Credits can be deliberately set to be empty again when credits to Wordpress authors are enabled (had been broken since 4.0.0).
- Bugfix: No more
Notice: register_rest_route was called incorrectly
during plugin initialization. - Change: WordPress minimum version increased to 5.2.0.
- Change: PHP minimum version increased to 7.0.0.
- Change: Support for Internet Explorer 11 has been dropped.
- Change: A fabulous new plugin icon designed by Johanna Amann.
- Bugfix: Credits containing apostrophes can be edited in the legacy Media Library view.
- Bugfix: Changes to
nofollow
flag are now saved in the legacy Media Library view as well. - Bugfix: The plugin is now compatible with WordPress 5.6.
- Feature: Images cropped in the Customizer inherit the credit from the original image.
- Feature: Credits are read from EXIF/IPTC fields on image upload.
- Bugfix: No markup is added to
core/image
blocks when no credit is set. - Bugfix: Attachment details input fields are set to read-only when the user lacks write permissions for the image.
- Bugfix: Malformed shortcodes won't break the editor anymore.
- Bugfix: Some error messages were not getting translated because of a WP.org infrastructure change.
- Change: All external PHP dependencies have been moved to the namespace
Media_Credit\Vendor
to reduce the chance of conflicts with other plugins.
- Bugfix: Prevent PHP warning for incomplete
core/image
blocks.
- Bugfix: Print credit for featured images, not for the parent post.
- Bugfix: Slightly improved compatibility with responsive themes (by using
max-width
instead ofwidth
).
- Bugfix: Don't whitescreen when the shortcode handler is called with an empty string instead of argument array.
- Bugfix: Featured images can be set normally again when
Do not credit images to WordPress users
is enabled.
- Bugfix: Uploads via the Edit Post or New Post screens should work again.
- Feature: Full REST API support (reading and writing).
- Feature: A custom default credit for new attachments can be set via the GUI
or the new filter hook
media_credit_new_attachment_default
. - Feature: Placeholder texts can be customized via the new filter hook
media_credit_placeholder_text
. - Feature: Images added via the Block Editor (Gutenberg) will be displayed with their credit.
- Feature: New autoload-friendly template tag API based on the
Media_Credit
class. The old function-based API has been deprecated. - Change: The previously deprecated template function
get_freeform_media_credit
has been removed. - Change: In HTML5 mode, the credit has been moved inside the
<figcaption>
. - Change: PHP minimum version increased to 5.6.0.
- Bugfix: When default credits are disabled, the display name of a user can be used as a freeform credit again.
- Use minified stylesheets and JavaScript files if running in a production environment.
- "Display credit after posts" now works with pages as well as regular posts (and custom post types).
- "Include schema.org structured data" can switched off again after first being enabled.
- General code clean-up.
- TinyMCE components updated.
- JavaScript components should be slightly more fault tolerant now.
- The plugin does not depend on the visual editor being enabled anymore. Props karinamendonca29.
- Return
''
(the empty string) when retrieving empty freeform credits. - Honor "Do not display default credit" for featured images.
- Prevent invalid link nesting in featured image credits. This means that by
default, no
<a>
tags are printed for featured image credits. The old behaviour can be restored by includingadd_filter( 'media_credit_post_thumbnail_include_links', __return_true );
in the theme'sfunctions.php
. - "Display credit after posts" is now restricted to the proper single post view
(and not every usage of
the_content
hook). - "Display credit after posts" is honored when used together with "Display credit for featured images".
- Properly sync models when editing image details.
- Removed non-existent customizer callback (props @rboulet).
- Fixed conflict between WPBakery Visual Composer 4.x and Media Credit.
- Updated TinyMCE components.
- Fixed JavaScript error in media uploaded directly from Edit Post
(
wp_prepare_attachment_for_js
only gets called after the upload finishes in 4.5.x).
- Optional no-follow attribute added.
- Optional schema.org markup added.
- Use HTML5 placeholders instead of default text when "no default credits" is set.
- Settings have been updated & streamlined.
- Added caching for backend queries.
- Updated TinyMCE components.
- Switched to the new Media API based on Backbone.js introduced in WordPress 3.5 for a snappier and more consistent user experience.
- Several security fixes and a general code clean-up have been applied due to automatic enforcement of WordPress coding standards.
- Fixed conflict between "no default credits" and featured image credits.
- Updating credits via the Visual Editor works again. Props siricar, timausk, jellylegs.
- Consolidated UI in "Edit Image" dialog.
- Updated visual editor plugin for WordPress 4.5 (minimum WordPress version is now 4.5, as well).
- Fixed
run_wptexturize
filter breakage caused by callingget_bloginfo
too early.
- Refactored plugin for a more future-proof architecture.
- Moved all non-'template tag' functions out of the global namespace. This might break themes that relied on these (undocumented) functions. Please test before updating if you are running a highly customized installation of Media Credit.
- Wrap standalone media credits in
<figure>
if HTML5 support for captions is enabled. - Uses WordPress language packs for translations.
- Fixed previously broken use case when both caption and credit are removed from an image in the visual editor.
- Added check whether parent is already published when displaying "attached" media.
- Added support for featured image credits.
- Backported fix for removing both credit and caption in Visual Editor (from 3.0 development branch).
- Please note: This will likely be the last patch before 3.0.
- Fixed a bug in Preview script.
- Fixed empty
$credit
array formedia_credit_at_end
filter when there is only one (unique) credit. Props David Higgins.
- Somewhere, the caption ID attribute got lost. Sorry.
- Fixed silent error message regarding unset
no_default_credit
option - Fixed
wpautop
handling. Probably.
- Missed a few strings
- Fixed incorrect positional parameter strings
- Honor 'Do not display default credit' option in conjunction with 'Display credit after posts'
- Added translation functions to user visible strings
- Added German translation
- Fixed responsive image breakage on some themes
- Fixed autocomplete in Customizer
- Updated JS for switching between Visual and HTML editors
- Fixed freeform credit parsing in Visual editor
- Fixed "media credit at end"
- limit selectable users to authors (no subscribers)
- URL can be set from Media Library, not just in the post editor
- Credit URL can override the automatic author link
- Added
media_credit_at_end
filter hook
- Forgot to remove some debug output
- Added URL parameter to shortcode and GUI
- Display image toolbar with WP 4.2
- Fix missing newlines when switching between HTML and Visual mode in the post editor
- Replaced some deprecated calls
- Fixed bug that didn't add shortcode when editing a "plain"
img
tag. - Updated UI for Wordpress 4.1
- Fixed encoding bug with HTML credit lines
- Fixed editing of image classes in the visual editor
- Fixed deletion of
[media-credit]
shortcodes without[caption]
in the visual editor - Fixed bug that added
\
to apostrophes/single quotes in certain circumstances
- Code clean-up
- Added support for visual editing of shortcodes
- Fixed edited posts not updating when credits are changed via the media modal.
- Added FAQ regarding unparsed shortcodes with JetPack Publicize
- Add plugin version to CSS & JS files to ensure the autocomplete bugfix is applied.
- Fixed long-standing bug with saving autocompleted credits
- Fixed missing autocomplete in WP 4.0 media grid
- Fixed E_NOTICE level error message
- Added option to prevent attachment authors as default credit
- Updated TinyMCE plugin for Wordpress 4.0
- Various bugfixes
- Fixed a packaging error that rendered the plugin inoperational
- Fix Visual Editor mode when credit field is empty
- Compatibility with Wordpress 3.9 (TinyMCE 4.x)
- Completely new Visual Editor code
- Bumped version number to fix update notice for users of 1.1.2
- Compatibility with Wordpress 3.5 media dialog
- Fixes for bugs in Visual editor
- Fixed shortcode parsing (broken since Wordpress 3.4)
- Fixes total autocomplete failure on WordPress 3.1
- Fixes freeform credit situation where a user was selected but freeform text was entered afterward
- Fixes extra output on activation notices (they weren't serious, but I imagine some people were freaking out seeing them)
- Updating media credit in the Media Library really does update the credit within posts correctly now! (props: Greg Wrey)
- Adding multiple images with freeform media credit to a post also now works as expected (props: Greg Wrey)
- Now compatible with TinyMCE! Media credit will appear inline (i.e. below the photo) when using the Visual editor rather than as an ugly shortcode.
- Updating media credit in the Media Library will now correctly and safely update it in an attached post, regardless of whether it's a WP user or not
- Added filter on
the_author
so that media credit is properly displayed in Media Library (not yet for unattached media, though - will be added in WP 3.1 hopefully) - Made
$post
parameter actually optional in template tags (used global$post
if not given)
- Changed post meta field from
media-credit
to_media_credit
so that it doesn't appear in custom fields section on Post edit page normally. Upgrade script will handle changing the key for all existing metadata.
- Added author media rendering methods (see FAQ)
- If media credit is edited in the Media Library, the media credit in the post to which media is attached to will now update as well!
- Only load JS and CSS in admin on pages that need it
- Blank credit can now be assigned to media
- Switched rendering of media-credit shortcode credit info to
div
instead ofspan
for more readable RSS feed
- Switched autocomplete to an older, more stable version - should be working great now for all blogs!
- With above, fixed loss of control of AJAX functionality in WordPress admin area
- Default options are now correctly registered when the plugin is activated
- Any pre-existing options will not be overwritten when activating the plugin
- Separator and organization names on the settings page are properly escaped
- Fixed autocomplete when selecting credit so that it only shows currently selectable users (particularly important for WordPress MU users).
- Made it so that upon clicking in the Credit field the text already there will be highlighted - start typing right away!
- Hid media credit inline with attachments if the "Display credits after post" option is enabled.
- Initial release.