Skip to content

Releases: wp-shortcake/shortcake

Version 0.4.0

22 Jun 20:21
Compare
Choose a tag to compare
  • Breaking change: We've removed the compatibility shim for the placeholder attribute argument. You should register a placeholder for your field using the meta argument.
  • Using carldanley/wp-js-hooks for a basic API to register JS callbacks on shortcode attributes.
  • Attachment field uses a loading indicator when the preview for an attachment is loading.
  • Added Chinese translation.
  • Added French translation.
  • Added Spanish translation.
  • Bug fix: Prevents fataling when editor is loaded in the frontend context.
  • Bug fix: Color field also supports meta argument.
  • Bug fix: Removes trailing whitespace from shortcodes without attributes.
  • Bug fix: Removes double slash in editor css path.
  • Full release notes

Version 0.3.0

27 Apr 20:04
Compare
Choose a tag to compare
  • Breaking change: We've removed the compatibility shim for the magical content attribute. If you were using this to support editing inner content, you'll need to change your UI registration to use inner_content.
  • New post_select field type for selecting from a list of posts. Supports an additional query parameter to modify the search query.
  • Using a new post_type argument, shortcode UI can be registered for specific post types. This is helpful if you want the UI for a given shortcode to only appear on specific post types.
  • For each shortcode attribute, a meta argument can be specified to add arbitrary HTML attributes to the field. We've added a compatibility shim for the existing placeholder argument. This compatibility shim will be removed in v0.4.
  • When inserting a shortcode, UI shows a helpful message when the shortcode doesn't have attributes to configure. Previously, the user was presented with a relatively blank screen.
  • Our example plugin can be activated through the WordPress admin.
  • Clicking "Insert Post Element" in the left menu effectively acts as back button to selecting a shortcode.
  • Language around the editing experience reflects the shortcode you're editing. For instance, with a pullquote shortcode, "Edit Post Element" becomes "Edit Pullquote".
  • Added Dutch translation.
  • Source JavaScript files moved to js/src for clarity between source and built JavaScript.
  • PHP files are scanned using PHP_CodeSniffer.
  • Bug fix: Unquoted shortcode attributes are properly supported.
  • Bug fix: Attachment field properly registers dependencies.
  • Bug fix: "Insert Post Element" experience should work when visual editor is disabled. Shortcake is only loosely coupled with TinyMCE.
  • Bug fix: Editor styles are loaded on after_setup_theme to prevent fatals.
  • Full release notes.

Version 0.2.3

08 Apr 16:45
Compare
Choose a tag to compare
  • Fix WP 4.1 backwards compatibility issue by restoring arguments passed to TinyMCE view compatibility shim.

Version 0.2.2

06 Apr 17:05
Compare
Choose a tag to compare
  • Update arguments passed to TinyMCE View Render for WP 4.2 compatibility. Previously passed argument wasn't necessary, so removing doesn't break backwards compatibility.

Version 0.2.1

18 Mar 20:42
Compare
Choose a tag to compare
  • Ensure use of jQuery respects jQuery.noConflict() mode in WP.

Version 0.2.0

18 Mar 16:05
Compare
Choose a tag to compare
  • JS abstracted using Browserify.
  • Enhancements to "Add Post Element" UI: shortcodes sorted alphabetically; search based on label.
  • Much easier to select shortcode previews that include iframes.
  • WordPress 4.2 compatibility.
  • Added color picker to list of potential fields.
  • Bug fix: IE11 compatibility.
  • Bug fix: Checkbox field can now be unchecked.
  • Full release notes.

Version v0.1.0

23 Dec 20:13
Compare
Choose a tag to compare